Error_messages

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.

On 14 August 2010 15:09, Abder-Rahman A. [email protected] 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

Colin

clanlaw wrote:

On 14 August 2010 15:09, Abder-Rahman A. [email protected] 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

Colin

I can google it, but most of the results show error_messages_for.

And, I just need some clarification on error_messages

On Aug 14, 3:58 pm, Abder-Rahman A. [email protected] 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.

Fred

Frederick C. wrote:

On Aug 14, 3:58�pm, Abder-Rahman A. [email protected] 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.

Fred

Gotcha Fred. Thanks a lot.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs