Browse files

Fix No route matches GET "/assets/application.css"

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...
1 parent 87a471f commit 361f6575bffb9cca455222926fd822498d309096 @croaky croaky committed Sep 27, 2013
Showing with 0 additions and 4 deletions.
  1. +0 −4 lib/suspenders/app_builder.rb
View
4 lib/suspenders/app_builder.rb
@@ -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

0 comments on commit 361f657

Please sign in to comment.