Hi! I hve validates_uniqueness_of and validates_presence_of validations in a model called Person.They are wrkng as intended but the error is not getting displayed.(The ''Red'' message). Any ideas? Regards, Swanand --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, could you present the code that''s in question? Peace, -Conrad On 12/5/06, swanand deodhar <swanand.blms-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi! > I hve validates_uniqueness_of and validates_presence_of validations in a > model called Person.They are wrkng as intended but the error is not getting > displayed.(The ''Red'' message). Any ideas? > Regards, > Swanand > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You need to display <%= error_messages_for ''user'' %> or whatever your model is in your view. Otherwise, the errors are there, but they have nowhere to go. Conrad Taylor wrote:> Hi, could you present the code that''s in question? > > Peace, > > -Conrad > > On 12/5/06, swanand deodhar <swanand.blms-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hi! >> I hve validates_uniqueness_of and validates_presence_of validations in a >> model called Person.They are wrkng as intended but the error is not getting >> displayed.(The ''Red'' message). Any ideas? >> Regards, >> Swanand >> > >> >> > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---