Hi, I''m trying to create "forgot_password" page, but the error is not showing out on the page. user.errors[:password] = "must be longere then 5 character" or user.errors[:password] << "must be longere then 5 character" in html.erb <%= @user.errors[:password]%> but it''s empty? nothing is printed out, even so valid? is false I''m doing something wrong? Thanks for any help :D -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
just in case.. i try to print out. <%= @user.errors.to_s%> i only get. passwordpassword_confirmation -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sep 23, 11:26 am, Jamal Soueidan <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> just in case.. > > i try to print out. > > <%= @user.errors.to_s%> > > i only get. >You''re going to need to do a little more work in order to get that to display in a form that is readable by the user, eg iterate over it with each (or use the error_messages_for helper, now in the dynamic_form plugin - useful as an example in anycase) Fred -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.