Class: Primer::ViewComponents::MultiController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Primer::ViewComponents::MultiController
- Defined in:
- app/controllers/primer/view_components/multi_controller.rb
Overview
works with app/forms/multi_input_form.rb :nocov:
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
8 9 10 11 12 |
# File 'app/controllers/primer/view_components/multi_controller.rb', line 8 def create respond_to do |format| format.json { render json: params.permit(:country, :region).to_h } end end |