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 4d44228 commit 8958db6Copy full SHA for 8958db6
lib/generators/inertia/install/install_generator.rb
@@ -164,7 +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('config/routes.rb').match?(/^\s*root\s+/)
+ unless File.read(file_path('config/routes.rb')).match?(/^\s*root\s+/)
168
route "root 'inertia_example#index'"
169
end
170
0 commit comments