# Re: Re: Push user.id to another Controller

**URL:** <https://www.ruby-forum.com/t/re-re-push-user-id-to-another-controller/240578>\
**Category:** Rails\
**Created:** [April 21, 2014, 11:16pm UTC](https://www.ruby-forum.com/t/re-re-push-user-id-to-another-controller/240578 "2014-04-21T23:16:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 21, 2014, 11:16pm UTC](https://www.ruby-forum.com/t/re-re-push-user-id-to-another-controller/240578/1 "2014-04-21T23:16:04Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date:21/04/2014 23:03 (GMT+01:00)  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Rails] Re: Push user.id to another Controller

On 21 April 2014 21:46, Alfredo B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](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](https://groups.google.com/d/topic/rubyonrails-talk/3K-14GwoqhE/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to  
removed\_email\_address@domain.invalid.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To view this discussion on the web visit  
[https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuJvzM\_K0zPxHAyoQ%2B6Q9EkVN9peSLEXwS6\_yROfSigRQ%40mail.gmail.com](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](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![alfa-rero](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/cdc98d/32.png) [@alfa-rero](https://www.ruby-forum.com/u/alfa-rero)\
**Post date:** [April 21, 2014, 11:23pm UTC](https://www.ruby-forum.com/t/re-re-push-user-id-to-another-controller/240578/2 "2014-04-21T23:23:09Z")

</div>

On 21 April 2014 22:14, abarrero90 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m not using any gem, I did by myself the login method. Could you tell me  
> any gem?

Read the reply by Robert W. in this thread on 16th April. Also  
google can be very helpful. You are more likely to get help here if  
you give the impression of having tried to answer questions yourself  
before asking us to spend our time trying to help.

Colin
