Skip to content

Commit

Permalink
Fix No route matches GET "/assets/application.css"
Browse files Browse the repository at this point in the history
We use Rails' asset pipeline's `config.assets.digest = true` setting to
add a hash to the name of the application.css file. This means it isn't
available using this path.
  • Loading branch information
Dan Croak committed Sep 27, 2013
1 parent 87a471f commit 361f657
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/suspenders/app_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,9 @@ def customize_error_pages
<meta charset='utf-8' />
<meta name='ROBOTS' content='NOODP' />
EOS
style_tags =<<-EOS
<link href='/assets/application.css' media='all' rel='stylesheet' type='text/css' />
EOS

%w(500 404 422).each do |page|
inject_into_file "public/#{page}.html", meta_tags, :after => "<head>\n"
replace_in_file "public/#{page}.html", /<style.+>.+<\/style>/mi, style_tags.strip
replace_in_file "public/#{page}.html", /<!--.+-->\n/, ''
end
end
Expand Down

0 comments on commit 361f657

Please sign in to comment.