Button creates a new instance and submits form rails

90 Views Asked by At

I have a form and I want to make a submit button that submits the form but ALSO shows a new(blank) instance of the same form. How can I accomplish this? I am using the wicked gem to make steps and I thought I could do this...

<%= link_to 'Add Another Tenant', wizard_path(:same_step_that_im_already_on), class: "btn btn-info btn-lg"%>

but it is not working.

0

There are 0 best solutions below