NoMethodError in Users#new

Forums > Book - Chapter 3 > NoMethodError in Users#new

Login to post a new topic

Author Message
toby
Member since 20 Mar 20:45
0 posts

Hello,
yes i’m a novice :-).
i’m getting this error. NoMethodError in Users#new
undefined method `profile’
I have copied the code from the book but im still getting this error….
using rails 2.0.2
Good book..so far

toby
Member since 20 Mar 20:45
0 posts

Hello again,
that problem is now solved, i had forgotten to put the field in the controller…, but i have a new problem, i’m getting this one undefined method `authenticate’, d:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1532:in `method_missing’
app/controllers/account_controller.rb:4:in `authenticate’ . But the method is defined in the account_controller, so again i’m stuck…