In my app I have form with fields for nested model, it looks like this:
= simple_form_for [:partners, @car], url: wizard_path do |f|
= f.association :payment_types, as: :check_boxes
= f.simple_fields_for :prices do |p|
= p.input :from_days
= p.input :to_days
= p.input :netto_price
= p.input :available_from, as: :string
= p.input :available_to, as: :string
= f.submit
Now I want to have button "Add new" and when I click it it will render through javascript fields for new Price. How can I do it?