Hi all,
I’m searching for a method to dynamically build a form. ( false/true
field in
the DB should automatically be a droplist)
If you use “_form.rhtml” it works easy, with only this code in your
partial,
but uses the extra file, and doesn’t feel profi and flexible.
<%= start_form_tag :action => ‘create_product’ %>
<%= render :partial => ‘form’ %>
<%= submit_tag ‘Edit’ %>
<%= end_form_tag %>
If you do it like below, it looks really good and feels flexible, but
that
won’t auto-create the droplists.
<%= start_form_tag :action=> “create_product” %>
Field | Contents |
---|