Erwin
2010-Oct-18 14:13 UTC
Rails 3 - is it possible not to display the attribute name in the error message ?
when displayed using - target.errors.full_messages.each do |msg %li= msg I get obviously displayed : 3 errors Email can''t be blank Password can''t be blank Agreement status : You must acknowledge that you agree to our Terms of Use and Privacy Policy and hat you are over 14 years old. but I would like to display Only the error message on the 3rd attribute ... getting 3 errors Email can''t be blank Password can''t be blank You must acknowledge that you agree to our Terms of Use and Privacy Policy is it possible ? I don''t want to use base, as I need later to check on error for this attribute.... thanks for you suggestions -- 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.