User.find(session[:user_id]).
On Jul 18, 12:00 pm, Justin To
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> NoMethodError in Auth userController#new_requirement
>
> undefined method `find_by_id'' for #<Class:0x4628d34>
>
> Method in application controller: User.find_by_id(session[:user_id])
>
> id is one of the columns of my users table...
>
> What could be wrong?
>
> Thanks
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---