On Friday, October 14, 2011 2:53:20 AM UTC-4, Ruby-Forum.com User wrote:
>
> I have one big problem: when I try record to db through
> update_attributes! (which must save when record invalid).


I'm not so sure that's entirely accurate. Check out the API for 
update_attributes! and save! methods:

http://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-update_attributes-21
http://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-save-21

Specifically: update_attributes! updates its receiver just like 
update_attributes but calls save!  With save! validations always run.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/ytBn6RxuB20J.
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