Class: InertiaExampleController
- Inherits:
-
InertiaController
- Object
- ApplicationController
- InertiaController
- InertiaExampleController
- Defined in:
- lib/generators/inertia/install/templates/controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 |
# File 'lib/generators/inertia/install/templates/controller.rb', line 4 def index render inertia: { name: params.fetch(:name, 'World') } end |