Hey everyone, I am having a strange (to me) problem. I''ve had a user registration form working for months untill the last time i updated my database (I probably changed something too else that made it break but don''t know what it could be). What happens is: A user enters their desired username, email password into a registration form. The validation on the user model is working fine. I know this by watching the database, but the error message are not being displayed. It''s the weirdest thing because the register.rhtml file clearly has <%= error_messages_for ''user'' %> I''ve checked to make sure the error message are being populated with user.errors.invalid?(:email), etc, and they are. I must have done something to keep it from displaying the error messages, but I have no idea what. Any thoughts? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Has anyone had problems with the error_messages_for not being populated like it should? I have a user model with validation that is working (I know this from testing), but the error messages are not being displayed by error_messages_for ''user''. I don''t understand. All my other models'' error_messages work fine. any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
ismail.asci-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Dec-11 10:30 UTC
Re: user validation
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/cb44122f70972f37/1e0d6a1d1fe482fc?lnk=gst&q=error_messages_for&rnum=7#1e0d6a1d1fe482fc --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---