Displaying 1 result from an estimated 1 matches for "selected_value_here".
2011 May 17
0
Select not maintaining state on nested form with
...at the controller manually
create this from the model but that is disgusting and counter to why there
would be a helper... So open to suggestions. I have also tried
collection_select with no luck.
<%= s.select :statistic_type_id,
options_from_collection_for_select(StatisticType.all, :id, :name,
selected_value_here),
This is part of the context:
<%= 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| %>...