On 22 Jun 2009, at 10:14, Newb Newb wrote:
> > 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.... > Just don't use update_attribute. Use save, update_attributes etc. Fred > 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---