Displaying 1 result from an estimated 1 matches for "statistic_id".
Did you mean:
statistic_8h
2011 May 17
0
Select not maintaining state on nested form with
...text:
<%= b.fields_for :players do |p| %>
<%= p.label :player_id %>
<%= collection_select :p, :player_id, Player.all, :id, :last_name,
:include_blank => true %><br>
<%= p.fields_for :statistics do |s| %>
<%= s.label :statistic_id %>
<%= s.select :statistic_type_id,
options_from_collection_for_select(StatisticType.all, :id, :name,
selected_value_here), :include_blank => true %>
<%= s.text_field :value %><br>
<% end %>
<% end %>
--
You receive...