File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 77 <%= stylesheet_link_tag "tailwind" , "inter-font" , "data-turbo-track" : "reload" %>
88 ERB
99
10- insert_into_file APPLICATION_LAYOUT_PATH . to_s , %( <main class="container mx-auto mt-28 px-5 flex">\n ) , before : CENTERING_CONTAINER_INSERTION_POINT
11- insert_into_file APPLICATION_LAYOUT_PATH . to_s , %(\n </main>) , after : CENTERING_CONTAINER_INSERTION_POINT
10+ if File . open ( APPLICATION_LAYOUT_PATH ) . read =~ /<body>\n \s *<%= yield %>\n \s *<\/ body>/
11+ insert_into_file APPLICATION_LAYOUT_PATH . to_s , %( <main class="container mx-auto mt-28 px-5 flex">\n ) , before : CENTERING_CONTAINER_INSERTION_POINT
12+ insert_into_file APPLICATION_LAYOUT_PATH . to_s , %(\n </main>) , after : CENTERING_CONTAINER_INSERTION_POINT
13+ end
1214else
1315 say "Default application.html.erb is missing!" , :red
1416 say %( Add <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %> within the <head> tag in your custom layout.)
You can’t perform that action at this time.
0 commit comments