# Noob Question: Problems with FormOptionsHelpers

**URL:** <https://www.ruby-forum.com/t/noob-question-problems-with-formoptionshelpers/118057>\
**Category:** Rails\
**Created:** [October 23, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/noob-question-problems-with-formoptionshelpers/118057 "2007-10-23T16:53:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakob\_bliz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9c0ed/32.png) [@jakob\_bliz](https://www.ruby-forum.com/u/jakob_bliz)\
**Post date:** [October 23, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/noob-question-problems-with-formoptionshelpers/118057/1 "2007-10-23T16:53:14Z")

</div>

Hi!

I have problems to see existing values in several FormOptionsHelpers…  
(text\_area or select for example):

\<% @models.each do |model| %\>  
\<% form\_for “model”, model, :url =\> { :action =\> :update } do |f| %\>  
\<%= f.text\_field :name %\> // works  
\<%= text\_area “model”, “text” %\> // doesn’t work…  
\<%= select “model”, “mode”, […] %\> // doesn’t work…  
\<% end %\>  
\<% end %\>

I don’t get any errors, but the values of the models doesn’t show in the  
fields…

The text\_field will have the value of model.name, but the textarea is  
empty (model.text is not empty) and the selection of the select dropdown  
is not working…  
why?

When @foo = Model.find(:first) this will work fine:

\<% form\_for “foo”, foo, :url =\> { :action =\> :update } do |f| %\>  
\<%= f.text\_field :name %\> // works  
\<%= text\_area “foo”, “text” %\> // works  
\<%= select “foo”, “mode”, […] %\> // works  
\<% end %\>

Just in the each-loop something doesn’t work 😕

Please Help Me!
