Hi! I was hoping someone could take the time to explain to me why update_attribute doesn't trigger validations? Why am I concerned with this?
1) It's inconsistent with the behaviour of the update_attributes method 2) People may think (like me) that all public methods that update ActiveRecord objects use validations and thus risk ending up with inconsistent data. The principle of least surprise here would suggest that the method does trigger validations. The non-validating behaviour of update_attribute is also not documented by the Rails book. For some background, see: http://dev.rubyonrails.org/ticket/7698 http://marklunds.com/articles/one/333 Cheers Peter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
