For my project I'm using rails_admin and try to use rich text formatting gem. Locally everything works fine, but it won't work in production on heroku. I get the error
ActionView::Template::Error (rich/editor.css isn't precompiled)
This is how I precompile:
config.assets.precompile << *.js
And I also tried this:
config.assets.precompile += %w( *.css *.js )
UPDATE:
I'm precompiling the assets locally before deploying to heroku by running this command:
RAILS_ENV=production bundle exec rake assets:precompile
and i have this in my application.css
*= require_self
*= require rich/editor
*= require_tree .
Anyone who can help me on this?