Saurabh Peshkar wrote:
> try this out,
>
> in user.rb
>
> def after_validation
> variable = self.errors.reject{ |err| %w{club }.include?(err.first) }
> self.errors.clear
> variable.each { |err| self.errors.add(*err) }
> end
>
> might work.
hi Saurabh,
it is now working properly..
thank u soooooooo much......
but can u please tell me exact meaning of this methos after_validation??
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---