Forum: Ruby on Rails undefined method exception

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1b164a615a3f17a7c1c9f9f965c5026a?d=identicon&s=25 Travis Briggs (Guest)
on 2006-04-10 16:48
(Received via mailing list)
Here's the exception:
undefined method `missing_since' for 1140030500.21:Float

And here's the code:

%= cop.lost.missing_since if cop.lost.has_attribute?(:missing_since) %>

Interestingly enough, the value quoted (1140030500.21:Float) is the
value of the missing_since attribute....

Also, this code:

<%= cop.lost.attributes %>

Results in this:

missing_since1140030500.21id1copy_id1borrower_id2

Any ideas? This is really baffling...

Thanks in advance,
-Travis
This topic is locked and can not be replied to.