Rails 3 - adding inputs with values (nested-form) -
i have troubles rails3 , nested-form gem.
adding empty inputs great want have select tag predefined filled forms, , when choose 1 of options script add inputs defined value form.
how can add input fields values nested form?
i think nested form add methods form builder, through standard helpers:
- f.fields_for :nested_model |nested_builder| = nested_builder.select :method, model.all.collect {|m| [ m.name, m.id ] }, { :include_blank => true }
Comments
Post a Comment