I am now working on Rail 4 project, and I have  select  in  Field_for  form for update 
  & lt;% = f.fields_for: Content | Ingredient_fields |%> & Lt;% = ingredient_fields.text_area: Name% & gt; & Lt;% = ingredient_fields.select: Value%> & Lt;% = options_for_select ([['cheapest', 1], ['expensive', 2]],: value)%> & Lt;% end% & gt; & Lt;% = link_to_remove_fields 'Remove this component', f% & gt; & Lt;% end% & gt;    but this update does not reflect the form : value  attribute, which is already  component  object 
 (For example, if I have a component object with the  expensive  : value  attribute, then select that object in the input  
No comments:
Post a Comment