re: Integrate Stripe in your Ruby on Rails app VIEW POST

FULL DISCUSSION
 

Hi, what's the point of defining instance variable in BillingController

  @user=current_user.email

if you can use

current_user.email

directly in views using Rails?
P.S. It's strange to see this part of code in turorials:

  subscriptions.each do |subscription|
    subscription.delete
  end

Instead of this one:

  subscriptions.each(&:delete)
code of conduct - report abuse