Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3.1 asset pipeline css styles in 404 static page

I am building a static public/404.html page. Before Rails 3.1 I can reference it with the public/style.css. But now with asset pipeline I am not sure what to link to. I heard that the styles will be compiled into asset/application.css. But on production it will come with a timestamp.

What is the best approach to style the static 404.html with the normal styles I work with?

like image 651
lulalala Avatar asked Dec 23 '11 05:12

lulalala


1 Answers

It's true that the assets in 3.1 come with a digest in production, but you can still use the regular file, meaning that you can link to /assets/application.css and you won't have any problems (try it! :)).

like image 92
Federico Builes Avatar answered Oct 10 '22 05:10

Federico Builes