Guest User

Untitled

a guest
Apr 25th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. >> user = User.new :user => "adam", :password => "henry", :password_confirm => "henry"
  2. NoMethodError: undefined method `user=' for #<User:0x3398714>
  3. from /opt/local/lib/ruby/gems/gems/activerecord-1.15.6/lib/active_record/base.rb:1860:in `method_missing'
  4. from /opt/local/lib/ruby/gems/gems/activerecord-1.15.6/lib/active_record/base.rb:1675:in `send'
  5. from /opt/local/lib/ruby/gems/gems/activerecord-1.15.6/lib/active_record/base.rb:1675:in `attributes='
  6. from /opt/local/lib/ruby/gems/gems/activerecord-1.15.6/lib/active_record/base.rb:1674:in `each'
  7. from /opt/local/lib/ruby/gems/gems/activerecord-1.15.6/lib/active_record/base.rb:1674:in `attributes='
  8. from /opt/local/lib/ruby/gems/gems/activerecord-1.15.6/lib/active_record/base.rb:1508:in `initialize_without_callbacks'
  9. from /opt/local/lib/ruby/gems/gems/activerecord-1.15.6/lib/active_record/callbacks.rb:225:in `initialize'
  10. from (irb):2:in `new'
  11. from (irb):2
  12. >>
Add Comment
Please, Sign In to add comment