Topic: Implementing a Quizz - How to pass form inputs to a link?

What I'm doing is a 'Quizz maker' and user can save the Quizz or add a Question to the Quizz
Saving the Quizz is pretty straighforward the problem is to add a Question because when the user add a question to the quizz  I need to save the current data of the form in the session and then go to the view corresponding to the new question, then the user saves the question and go back to the new Quizz view.

It would be easy if I could get the data from the form like the 'save quizz' submit button would do it, but with a different button, the 'add question'...

can anyone give me a hint?????

Thanks in advance
Cassio

Re: Implementing a Quizz - How to pass form inputs to a link?

What does your current model setup look like. The way I envision it is:

Qiuiz
  belongs_to :user
  has_many :quiz_questions
end

QuizQuestion
  belongs_to :quiz
end

Depending on the complexity of the QuizQuestion you could have a QuizAnswer that relates to it. If all the questions are similar that data could be in the QuizQuestion table.

QuizAnswer
  belongs_to :quiz_question
end

-- I have never developed a real app with this exact setup. This may be the wrong approach.