Forum: Ruby on Rails undefined method exception

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Travis Briggs (Guest)
on 2006-04-10 18: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:


Any ideas? This is really baffling...

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