views:

87

answers:

2

Hello,

I just installed Restful Authentication.

After someone has successfully logged in, they write a review -- as you would a comment for a blog.

How do I know the value of the user_id column for the authenticater user so I can put that into the reviews table to match user to review?

Thanks.

+2  A: 

I'm not 100% sure of this, but try @current_user.id in your controller

gary_temp
A: 

I would like to 2nd gary_temp's answer. I don't have the rep to vote his answer up, but the same question brought me here, and his answer worked for me (thanks!).

(I just discovered if you twice include a name with an underscore, the underscores get interpreted as a request for italic text in the preview, below).

related questions