Displaying 1 result from an estimated 1 matches for "bad_valid".
Did you mean:
ad_valid
2006 Jun 27
6
Custom action on Active Record Validation Failure?
Instead of having it highlight the bad fields when you enter in a record
that fails validation, is there a way to make it do an action? I''m
looking for something like this:
validates_uniqueness_of :user_id,:url => {:controller => "headline",
:action => "index"}
so that on failing the uniqueness check, it would go to the headline
controller.
--