Search

Resume and bio of the author Couple of articles related to my hobby - robotics
My impressions about immigration to Australia. In Russian only. Recipes for everyday problems solving
Linux-related posts Windows-related posts
Software-related posts A lot of info about hardware
Different tools you might find useful Posts about various web technologies
Everything that doesn't fit the rest of the menu RSS feed for this blog

Tag Cloud

Archives

Links

Andrey Mikhalchuk’s Blog

Technoblog about life

Sep 13, 2013 ActionView::Template::Error (active_admin.css isn’t precompiled)

Just sepnt quite some time fixing infamous “ActionView::Template::Error (active_admin.css isn’t precompiled)” error on prod. Everything worked fine in dev environment but once I put the code on prod it broke. Couple websites proposed several solutions, but none of them worked for me. Finally a combination of difference recipes seemed to fix the problem. Here is how …


First edit config/environments/production.rb and add these lines to the end:

config.assets.precompile += %w(*.js)
config.assets.precompile += [/^[^_]\w+\.(css|css.scss)$/]
config.assets.precompile += %w( active_admin.css active_admin.js active_admin/print.css )

Next, run this commeand:

rake assets:precompile

Finally restart the web server and enjoy the problem gone :)

This post is published in Other, Web.

No comments

No comments so far

Leave a Reply

You must be logged in to post a comment.

Site Map (c) Andrey Mikhalchuk, 2005-2008