Skip to content

Commit cdf0bf9

Browse files
authored
Add root route to pages#root (#58)
1 parent 3d49b44 commit cdf0bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/content/content_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def add_root_route
4141
return unless pages_controller?
4242
return if root_route_exists?
4343

44-
inject_into_file "config/routes.rb", " root to: \"content/pages#show\"\n", before: /^\s*end\s*$/
44+
inject_into_file "config/routes.rb", " root to: \"content/pages#root\"\n", before: /^\s*end\s*$/
4545
end
4646

4747
private

0 commit comments

Comments
 (0)