I’m not using any gem, I did by myself the login method. Could you tell
me any gem?
Thanks.
-------- Original message --------
From: Colin L. [email protected]
Date:21/04/2014 23:03 (GMT+01:00)
To: [email protected]
Subject: Re: [Rails] Re: Push user.id to another Controller
On 21 April 2014 21:46, Alfredo B. [email protected] wrote:
Could you please explain to me this way?.
What gem (if any) are you using to provide user login? Most have a
current_user method or similar that will give you the current user so
you don’t need to pass it around at all.
Colin
send the user.id from the “users/show.html.erb” to “photos_controller.rb”,
puts ‘Adding photo’For more options, visit https://groups.google.com/d/optout.
–
You received this message because you are subscribed to a topic in the
Google G. “Ruby on Rails: Talk” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/rubyonrails-talk/3K-14GwoqhE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
[email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuJvzM_K0zPxHAyoQ%2B6Q9EkVN9peSLEXwS6_yROfSigRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.