Hi..
thanks for the reply...
i have below validation in my model...
validates_exclusion_of :login,
:in => %w( admin ),
:message => "Name admin is not allowed"
it validates tat the admin should not be used as login name..
in my admin profile module the admin can modify his infomation.
when i save the instance of admin it gives me the above validation error
...
is it possible to skip the exclusion of validation when i update the
admin record....
pls suggest me..
thanks
--
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
-~----------~----~----~----~------~----~------~--~---