We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76a9339 commit 4d44228Copy full SHA for 4d44228
lib/generators/inertia/install/install_generator.rb
@@ -164,6 +164,9 @@ def install_example_page
164
165
say 'Adding a route for the example Inertia controller'
166
route "get 'inertia-example', to: 'inertia_example#index'"
167
+ unless File.read('config/routes.rb').match?(/^\s*root\s+/)
168
+ route "root 'inertia_example#index'"
169
+ end
170
171
say 'Copying page assets'
172
copy_files = FRAMEWORKS[framework]['copy_files'].merge(
0 commit comments