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

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -