# Learning Rails 1st Edition - Form Builders - Confuzzled

**URL:** <https://www.ruby-forum.com/t/learning-rails-1st-edition-form-builders-confuzzled/169699>\
**Category:** Rails\
**Created:** [June 7, 2009, 9:05am UTC](https://www.ruby-forum.com/t/learning-rails-1st-edition-form-builders-confuzzled/169699 "2009-06-07T09:05:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rilindo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c2a13f/32.png) [@rilindo](https://www.ruby-forum.com/u/rilindo)\
**Post date:** [June 7, 2009, 9:05am UTC](https://www.ruby-forum.com/t/learning-rails-1st-edition-form-builders-confuzzled/169699/1 "2009-06-07T09:05:03Z")

</div>

Hi! Rails newbie here - so far, loving it.

Going through the Learnings Rails book and the for the most part, I am  
learning quite a bit (in spite of the errata). I did see something odd.

On 8.2.2, when I invoke the following private method:

def text\_field(method, options={})  
label\_for(method, options) + super(method, options)  
end  
private  
def label\_for(method, options={})  
label(:label || method) + “  
”  
end

I should be able to print the label and the field:  
\<%= f.text\_field :name %\>

However, it came across on the view screen form, it came across. as:

Label  
[FIELD BOX]

To actually display the label, I used this instead:

label(options.delete(:label) || method) + “  
”  
Which is fine, but I am little confused - is ’ label(:label || method)

- “  
” ’ supposed to work as intended or was the behavior changed  
in the 2.3.x series (which I am using right now)?
