# Help with form\_for

**URL:** <https://www.ruby-forum.com/t/help-with-form-for/196612>\
**Category:** Rails\
**Created:** [March 27, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/help-with-form-for/196612 "2008-03-27T21:06:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 27, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/help-with-form-for/196612/1 "2008-03-27T21:06:22Z")

</div>

I have this rhtml, that generate a table with the object @evaluations  
filled it before. The problem is that i need to get those text\_field  
with the data loaded, but instead it’ filled all text\_field whit the  
last @evaluation.  
What i am doing wrong?

\<% form\_for( @evaluations ) do |f| %\>

\<% for evaluation in @evaluations %\>  
\<%= evaluation.id%\>

  
  

```
  <td><%=f.text_field(:id, :size => 2) %></td>
  <td><%=f.text_field(:first_evaluation, :size => 2) %></td>
  <td><%=f.text_field(:second_evaluation, :size => 2) %></td>
  <td><%=f.text_field(:final_evaluation, :size => 2) %></td>

  <td><%= link_to 'Show', evaluation %></td>
  <td><%= link_to 'Edit', edit_evaluation_path(evaluation) %></td>
  <td><%= link_to 'Destroy', evaluation, :confirm => 'Are you

```

sure?’, :method =\> :delete %\>

  
\<% end %\> 

| Student | Commission | Id | Parcial 1 | Parcial 2 | Final |
| --- | --- | --- | --- | --- | --- |
| \<%=h evaluation.student.fistName %\> | \<%=h evaluation.commission.code %\> |

\<%= f.submit "Update" %\>

\<% end %\>

Thanks you much for your help.
