Displaying 1 result from an estimated 1 matches for "pending_user_id".
2005 Dec 29
7
belongs_to causing NoMethodError exceptions ... ?
...You''ll note some lines  
in the User class with two hashes ''##'' preceding them -- those are  
alternate statements that avoid using the .pending_user attribute. If  
you comment out the belongs_to :pending_user and use the alternate  
statements (which just work with the pending_user_id field),  
everything seems to work fine.
   1) Error:
test_create_with_valid_pending_user(UserTest):
NoMethodError: undefined method `updated?'' for #<PendingUser:0x8d09310>
     /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/ 
active_record/base.rb:1498:in `method_missing...