Ignore Rails public/assets in development

While building a Rails app, I decided to run

rake assets:precompile

on my local machine before uploading the app to production, in order to avoid installing gem I’ll never use on my production server. However, after doing this, the behavior of links using data-confirm such as

<a href="foobar" data-confirm="really?">foo</a>

became kind of weird. After searching a little, I found this issue, and as explained there, adding

config.serve_static_assets = false

to my development.rb filed solved the problem.

comments powered by Disqus
© 2021 Daniel Perez   Creative Commons License