George, Most of the time when this fails it's because of failing validations. Also, be aware that in the 0.10.x series, #update_attributes has been deprecated in favor of #update. When I encounter situations where update fails, I just add debug statements that print out the validation errors to either $stdout or the log.
HTH snusnu On Wed, Nov 25, 2009 at 13:20, George Adamson <[email protected]> wrote: > When update_attributes() fails in a Controller's update() action, it > can be rather secretive about the reason! > > What is the best way to find out what is causing the failure? Is the > error logged somewhere? > > Many thanks > George > > -- > > You received this message because you are subscribed to the Google Groups > "merb" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/merb?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/merb?hl=en.
