I'm currently utilizing remote_form_for within Ruby on Rails to generate a form that will inject some HTML into the current page upon submission. However, my goal is to allow users to utilize this pop-up for inserting HTML multiple times, as opposed to simply replacing existing information. How can I modify it to add the new HTML alongside the existing content? (Note: I have excluded opening and closing tags for clarity in the code).
remote_form_for :quiz_questions,
:url => add_additional_cms_quiz_questions_path,
:update => "quiz_questions",
:success => 'toggle_hidden("new_question", false);' do |f|
@quiz_question = QuizQuestion.new
f.fields_for @quiz_question do |builder|
render 'quiz_question', :f => builder
end
submit_tag 'Add Question'
end