Is it like this in new.html.erb

In the new.html.erb file, when you have a :title field for example, you
will find the following:

<%= f.label :title %><

When you view this page, you will find that the label is written as:
Title

Does Rails convert the field in this form with a capitalized first
letter.

I tried for example to change :title in the above script to Title
immediately, but got an error.

Does that mean I have to leave it as is and Rails will handle the look
of the field?

Thanks.

Read the documentation for label method:

You can also do a view source to see the Rails source code in the docs.
My
guess is that it is calling humanize method to convert the text to camel
case.

On Sun, Jul 18, 2010 at 12:59 AM, Abder-Rahman A.
[email protected]wrote:


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected][email protected]
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Cheers,
Bala
RoR Developer Now Available for Hire

Thanks Bala.