On Jun 22, 8:37 am, Newb Newb <[email protected]>
wrote:
>
> the above simply saves what i enter into the field.why it doesnot
> consider the modelvalidation.
> any guess.

Because update_attribute ignores validations completely. The intent is
that it is useful when just changing an attribute (eg flipping a flag)
where you don't really care about the overall validity of the object.

Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to