I am trying to render a text field in a form to edit an existing DB record.
The field is not being populated with the data even though I can call the
object and get the data to print outside of the form field.
I have the following:
<% for feature in @session[:new_issue].aspen_features -%>
<li>
<%= text_field ''feature'', ''title'', :class
=> "gen", "index" => feature.id
%><br/>
<%= feature.title %>
</li>
<% end -%
This renders this:
<li>
<input class="gen" id="feature_92_title"
name="feature[92][title]" size="30"
type="text" /><br/>
This is a title.
<input class="gen" id="feature_93_title"
name="feature[93][title]" size="30"
type="text" /><br/>
This is a second title.
</li>
Any thoughts why the value didn''t print in the form field but I can
output
one line below that?
What am I missing?
Thanks,
Hunter