Undefined method exception

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs