I have a form that is using form_tag and not sure how to use it with the simple_form gem. This is how my form looks:
<%= form_tag create_multiple_prices_path, :method => :post do %>
<% @prices.each_with_index do |price, index| %>
<%= fields_for "prices[#{index}]", price do |up| %>
<%= render "fields", :f => up %>
<% end %>
<% end %>
<%= submit_tag "Done" %>
<% end %>
Can it be done? How would a form_tag change to use simple_form correctly? What about when using it with fields_for? A Newbie could use some help.
Thank you.
simple_form is a wrapper around
form_for, notform_tag. You can usesimple_form_forinstead ofform_for, butform_tagjust creates<form>tags with specified content, it is not relevant to simple form.