I've got a trivial Order class:

class Order < ActiveRecord::Base
end

>From the console:

Loading development environment (Rails 2.1.2)
>> o = Order.new
=> #<Order id: nil, partner_account_id: nil, delivery_status: nil,
payment_status: nil, stock_status: nil, complete: nil, admin_notes:
nil, partner_notes: nil, created_at: nil, updated_at: nil>
>> o.exists?
NoMethodError: undefined method `exists?' for #<Order:0x7ffd7eabcfd8>
        from /home/tim/projects/distrome/trunk/vendor/rails/
activerecord/lib/active_record/attribute_methods.rb:251:in
`method_missing'
        from (irb):2
>> o.new?
NoMethodError: undefined method `new?' for #<Order:0x7ffd7eabcfd8>
        from /home/tim/projects/distrome/trunk/vendor/rails/
activerecord/lib/active_record/attribute_methods.rb:251:in
`method_missing'
        from (irb):3

I've looked at the source and the methods are there.  How can this
be???
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to