Wow, that is odd, you would think it would work the same as
update_attributes. Or it least there would be a
update_attribute(name,value,validate) where validate is a boolean.
On 1/17/06, Victor Grey <victor@2idi.com> wrote:>
> Just in case it saves someone else the several hours of insanity I just
> went through, update_attributes will not save unless the model
> validations are satisfied, but update_attribute (the singular form)
> will save the attribute to the database even if the model validations
> would fail!
>
> This appears to be a feature, not a bug
> (http://api.rubyonrails.com/classes/ActiveRecord/Base.html) although it
> is not mentioned in Agile Web Dev with Rails (page 221).
>
> Regards,
> Victor Grey
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060117/3c71c2df/attachment.html