Re: [Rails] Re: Validates attributes that aren't even being changed
On Thu, Aug 11, 2011 at 4:02 PM, Leonel *.* <lists@ruby-forum.com> wrote:
> Well yeah but even if I take :on => :update away it'll still run the
> validation, right?
Easiest way to find out is to try it :-)
> I've read that Rails runs the validation on "update" and "save" unless
> you specify otherwise.
If so, then do just that, e.g. ' :except => :update '
Or so I would think...
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home