# Is it like this in new.html.erb

**URL:** <https://www.ruby-forum.com/t/is-it-like-this-in-new-html-erb/191765>\
**Category:** Rails\
**Created:** [July 18, 2010, 9:59am UTC](https://www.ruby-forum.com/t/is-it-like-this-in-new-html-erb/191765 "2010-07-18T09:59:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [July 18, 2010, 9:59am UTC](https://www.ruby-forum.com/t/is-it-like-this-in-new-html-erb/191765/1 "2010-07-18T09:59:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [July 18, 2010, 11:20am UTC](https://www.ruby-forum.com/t/is-it-like-this-in-new-html-erb/191765/2 "2010-07-18T11:20:07Z")

</div>

Read the documentation for label method:

> **[ActionView::Helpers::FormHelper](https://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#M002292)**
>
> Form helpers are designed to make working with resources much easier compared to using vanilla HTML.

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.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)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 removed\_email\_address@domain.invalid.  
> To unsubscribe from this group, send email to  
> removed\_email\_address@domain.invalid[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> .  
> For more options, visit this group at  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–  
Cheers,  
Bala  
RoR Developer Now Available for Hire

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [July 18, 2010, 11:28am UTC](https://www.ruby-forum.com/t/is-it-like-this-in-new-html-erb/191765/3 "2010-07-18T11:28:27Z")

</div>

Thanks Bala.
