Forum: Ruby on Rails help needed on update_attributes

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.
Wiwi (Guest)
on 2007-06-13 00:29
(Received via mailing list)
Hi,

Here is my code to update an attribute of one record:

@person = Person.find($person_id)

@person.update_attribute(:FIRST_NAME , "ANDY")

It did not update the FRIST_NAME Bryan to ANDY in the database table,
but it did change in @person variable.

Any idea???

Thanks,
Wiwi (Guest)
on 2007-06-13 00:42
(Received via mailing list)
Hello,

I forget that the database is HeidiSQL.
(Guest)
on 2007-06-13 02:12
(Received via mailing list)
Is your first_name column in your db really all caps? This is not the
Ruby/Rails convention by the way... all upper should be saved for
constants.

b
This topic is locked and can not be replied to.