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???
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???
exists? is a class method, so Order.exists?( id_or_conditions) (what
would o.exists? even mean?)
There is no new? method, although there is one on
ActiveResource::Base. Did you mean o.new_record?