Method: Rapidfire::QuestionsController#update
- Defined in:
- app/controllers/rapidfire/questions_controller.rb
#update ⇒ Object
32 33 34 35 36 37 38 |
# File 'app/controllers/rapidfire/questions_controller.rb', line 32 def update form_params = params[:question].merge(:question => @question) @question = QuestionForm.new(form_params) @question.save respond_with(@question, location: index_location) end |