Class: Tasuku::Taskables::Text::ResponsesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Tasuku::Taskables::Text::ResponsesController
- Includes:
- Concerns::Redirectable
- Defined in:
- app/controllers/tasuku/taskables/text/responses_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/tasuku/taskables/text/responses_controller.rb', line 9 def create response = @request.responses.new response_params response. = send Tasks.config. respond_to do |format| if response.save format.html { redirect_to redirect_path_for(response) } else format.html { redirect_to :back, alert: response.errors..to_sentence } end end end |