I'm trying to read parameters from html form and update some fields in the database... Html is showing data from multiple "stories" and I want to be able to change Story.estimate field... The html has text input fields for every story showing like so:
<%= text_field_tag story.id, story.estimate, :class => "input-small" %>
My idea was to name these input fields by the ID of their story and then read and update them in the controller like so:
@story.update_attribute("estimate",params[@story.id])
But this of course does not work... I need some help... There has to be a better, simpler way of doing this...