Undefined method exception


#1

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