Rails Custom Form Building Interface
I'm building an interface for non-programmers to build and edit a form for a project. When a user clicks to create a new form and is taken to the form to create a new form, I'd like the user to be able to click a button to add a question to the form that is currently being created. I'm sure I could do this with a bunch of fancy AJAX, but for the first iteration of this, all I really want to see is that I am taken to the question's creation form and can create the question, and associate it with the form I was previously creating.

My thought on the approach went something like passing a special flag if a user clicks a submit button called "Add a question" and having the forms controller save the current state of the form from the params, take the new form's ID and then redirect to the question's form with that ID, but I can't find a way to conditionally send that flag, since I'd need to encode some sort of param in the submit button itself.
Rails Custom Form Building Interface
===

I'm building an interface for non-programmers to build and edit a form for a project. When a user clicks to create a new form and is taken to the form to create a new form, I'd like the user to be able to click a button to add a question to the form that is currently being created. I'm sure I could do this with a bunch of fancy AJAX, but for the first iteration of this, all I really want to see is that I am taken to the question's creation form and can create the question, and associate it with the form I was previously creating.

My thought on the approach went something like passing a special flag if a user clicks a submit button called "Add a question" and having the forms controller save the current state of the form from the params, take the new form's ID and then redirect to the question's form with that ID, but I can't find a way to conditionally send that flag, since I'd need to encode some sort of param in the submit button itself.