Displaying 1 result from an estimated 1 matches for "price_numb".
Did you mean:
price_number
2011 May 09
0
rails 2.3.5 nested attributes problema
The params sent to the controller are not nesting correctly as seen below.
<% fields_for "discount_code[new_discount][]
", task do |form| %>
Tour Type ID: <%= form.text_field :tour_type_id %>
Price: <%= form.text_field :price_number %>
Days: <%= form.text_field :days %>
<% end %>
I would expect this to come into the controller looking like
parameters : {"discount_code" =>
{"new_discount" => [
{"tour_type_id" => ''8'', "...