Wiwi
(Wiwi)
1
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
(Wiwi)
2
Hello,
I forget that the database is HeidiSQL.
Ben_Munat
(Ben Munat)
3
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