Julien Estebane
unread,Jan 4, 2013, 3:58:33 PM1/4/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
Dear Rails folks,
I have a user that has_many items, and an item model that belongs_to user.
In the controller for item, how do i access the current user that is logged in? it's very easy to access the current logged in user from when in the user controller/model/view with the @user variable, but i'm not sure how to access the currently logged in user @user in the item controller MVC.
Authentication was implemented using composer, the devise gem is being used.
Thanks