On 3 December 2011 15:36, Misha Ognev
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:> hi2all.
>
> for example, I have 2 resembling actions(not same!), and in one of them
> I want to some validation work, in other- no.
>
> data in them is very resembling to, and I can''t do this:
>> validate :v_method, :if => "some.data_differences.exists?"
Have a look at the Rails Guide on validations. There are several ways
to do conditional validation, if necessary you can write a custom
validation.
Colin
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.