I use requirejs-rails gem along with many third-party javascripts. In dev, all this seems to work ... even with the preliminary compilation of my assets, however, at the stage of production / production (heroku), he cannot find the assets.
Take jQuery for example (using jquery-rails gem). From heroku console if i do
Rails.application.assets.find_asset('jquery.min') it finds an asset (/app/vendor/bundle/ruby/1.9.1/gems/jquery-rails-2.1.1/vendor/assets/javascripts/jquery.min .js ").
However, if I try to go to it domain.com/assets/jquery.min.js , I will get 404.
My requirejs-rails configuration:
shim: jquery: exports: '$' jquery-ujs: - jquery paths: jquery: jquery.min jquery-ujs: jquery_ujs
in my application.js.coffee i have
require ['jquery', 'jquery-ujs'], ($) -> // ...
source share