RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: brennanmeadowcroft
I'm having the same problem.
I know that the helper method I have for current_user is not available in models. Since this goes
current_user
I read a post where someone suggested storing the current user inside the Model (http://rails-bestpractices.com/posts/47-fetch-current-user-in-models) but I'm leary of that solution because it seems like a bad idea to store something that might leak to other users.
This is a bit of a blocker since it's important to tie a particular tag to a user.
I'm having the same problem.
I know that the helper method I have for
current_user
is not available in models. Since this goesI read a post where someone suggested storing the current user inside the Model (http://rails-bestpractices.com/posts/47-fetch-current-user-in-models) but I'm leary of that solution because it seems like a bad idea to store something that might leak to other users.
This is a bit of a blocker since it's important to tie a particular tag to a user.