Displaying 1 result from an estimated 1 matches for "statistic_type_id".
2011 May 17
0
Select not maintaining state on nested form with
...#39;'rbi''],2 ...], rails
maintains the state for me... I guess I could 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...