Forum: Ruby on Rails Rails 3.2.7, ActiveRecord with a field called "message" fails

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.
Obelix (Guest)
on 2012-07-31 04:47
(Received via mailing list)
Upgraded to Rails 3.2.7.

I have an ActiveRecord with an attribute called "message".  This works
until 3.2.6.

With 3.2.7, I get this error:

private method `message' called for

I see a private method called 'message' added.

Short of renaming the field, any other suggestions?
684b64cf1db4f88d642531024278ec40?d=identicon&s=25 Radhames Brito (rbritom)
on 2012-07-31 08:02
(Received via mailing list)
try referring to the attribute like this instance[:message] where
it the name of the instance of course, e.g o
This topic is locked and can not be replied to.