Hi Emil,
Emil Kampp wrote:
Have this code, and i need to find put why it fails.
It's very difficult to help with nothing more than this. Perhaps you'd like to help us help you? Post your code. And maybe the error message(s) you're getting.
Bill
Hi Emil,
Emil Kampp wrote:
Have this code, and i need to find put why it fails.
It's very difficult to help with nothing more than this. Perhaps you'd like to help us help you? Post your code. And maybe the error message(s) you're getting.
Bill
It looks to me like it may be failing on validations rather than SQL as there is no update in the log.
Do you have any validations on your model? Are you also showing any errors in your update view?: <%= error_messages_for(@user) %>
update_attributes does not directly run an SQL command. Any save or create command goes through a process before it actually executes SQL; most notably validations are checked and the call will return false if any fail.
Steve