At: http://edgeguides.rubyonrails.org/getting_started.html Under: 7.4 Generating a Controller In the following: <%= form_for([@post, @post.comments.build]) do |f| %> <%= f.error_messages %> What is: <%= f.error_messages %> Is it displaying an error message? But, what and where is the error message displayed? And, how can we customize it? 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-/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 14 August 2010 15:09, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> At: http://edgeguides.rubyonrails.org/getting_started.html > > Under: 7.4 Generating a Controller > > In the following: > > <%= form_for([@post, @post.comments.build]) do |f| %> > <%= f.error_messages %> > > What is: <%= f.error_messages %> > > Is it displaying an error message? But, what and where is the error > message displayed? And, how can we customize it? >Have a look at http://www.google.co.uk/search?&q=rails+error_messages Colin -- 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.
clanlaw wrote:> On 14 August 2010 15:09, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> >> Is it displaying an error message? But, what and where is the error >> message displayed? And, how can we customize it? >> > > Have a look at http://www.google.co.uk/search?&q=rails+error_messages > > ColinI can google it, but most of the results show error_messages_for. And, I just need some clarification on error_messages -- 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 Aug 14, 3:58 pm, Abder-Rahman Ali <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> clanlaw wrote: > > On 14 August 2010 15:09, Abder-Rahman Ali <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > >> Is it displaying an error message? But, what and where is the error > >> message displayed? And, how can we customize it? > > > Have a look athttp://www.google.co.uk/search?&q=rails+error_messages > > > Colin > > I can google it, but most of the results show error_messages_for. >That''s ok - they''re basically the same. error_messages is just the form_for version of error_messages_for. Fred> And, I just need some clarification on error_messages > -- > Posted viahttp://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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung wrote:> On Aug 14, 3:58�pm, Abder-Rahman Ali <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> I can google it, but most of the results show error_messages_for. >> > > That''s ok - they''re basically the same. error_messages is just the > form_for version of error_messages_for. > > FredGotcha Fred. Thanks a lot. -- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.