Hassan Schroeder wrote:
NoMethodError (undefined method `<=>' for #<Listing:0x2aaaae156e08>):
This happens even in the console when I try to create a new Listing
object and save it.
l = Listing.new
l.name = "test"
NoMethodError: undefined method `<=>' for #<Listing:0x2b9595d76350>
Something's trying to compare 2 Listing objects, which don't have any
such comparison method, apparently.
a = Object.new
b = Object.new
a <=> b
NoMethodError: undefined method `<=>' for #<Object:0x1016b0498>
4 <=> 5
5 <=> 4
So you need to find where that comparison is being made -- since it's
on save possibly some validation?
Hassan Schroeder ------------------------ email@example.com
Yeah, that much I'm certain of. The only thing I don't know is maybe if
cache-money does something with that when trying to save an object and
throwing it into cache.
This all works perfectly fine on my local machine, just not on the
production server. So I figure it's some gem that only does certain
things in production. I'm using Geokit too, so if anyone knows of any
issue with either of these gems that might cause something like this,
please let me know.
Thanks for the help.