Class: Dato::LiveController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Dato::LiveController
- Defined in:
- app/controllers/dato/live_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
3 4 5 6 7 8 |
# File 'app/controllers/dato/live_controller.rb', line 3 def create @data = Hashie::Mash.new(JSON.parse(params[:data], symbolize_names: true).dig(:response, :data)) # Ensure HTML format is available for ViewComponent template resolution # ViewComponent 4 requires explicit format matching lookup_context.formats |= [:html] end |