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 8958db6 commit 5316326Copy full SHA for 5316326
lib/generators/inertia/install/install_generator.rb
@@ -164,9 +164,7 @@ 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(file_path('config/routes.rb')).match?(/^\s*root\s+/)
168
- route "root 'inertia_example#index'"
169
- end
+ route "root 'inertia_example#index'" unless File.read(file_path('config/routes.rb')).match?(/^\s*root\s+/)
170
171
say 'Copying page assets'
172
copy_files = FRAMEWORKS[framework]['copy_files'].merge(
0 commit comments