1
votes

I get the following error when I try to access my Rails application hosted on an Apache server with Phusion Passenger providing the Rails code integration to Apache. I have run rake assets:precompile on this server so I'm not sure why I'm getting this erro (as I don't get any problems with my precompile now).

ActionView::Template::Error (twitter-icon.svg isn't precompiled):

Any ideas?

1
Where is twitter-icon.svg in your Rails app (in /app/assets/images?)Cody Caughlan
Yup, just in app/assets/images.Ben Nelson
did you try adding config.assets.precompile += %w( blueprint/print.css ) in production.rb and run bundle exec rake assets:precompile RAILS_ENV=productionMuntasim

1 Answers

3
votes

Turns out Apache doesn't immediately recognize the asset precompilation so after you do that, you need to restart your Apache server! It works like magic!

Thanks!!