I am pretty new to ror…
I create a table filled thanks to a partial with a collection.
Each line is a “form_for” ending with a submit which update some
values for a specific row.
My problem is that I would like, after clicking on the submit button
that, the concerned row and only this one updates and not the whole
table. With the following code, it update well, but at the end at only
view the modified row (loosing application layout, table view…)
Can someone help me ?
I have the following views :
<% content_for :content do %>
<%= @group.name %>
|<%= car.name %><%= hidden_field_tag :car_id, car.id %> <% car.group.checks.each do |c| %>||<%= text_field_tag 'check_' + c.id.to_s, car.check_at (c.id), :size => 1 %><% end %>||<%= f.submit 'Record' %><% end %>|