I'm migrating an app to Rails 3. The following - which I've seen recommended in a few places - does not work:
In my case, it expands to this:
... which results in a 404. As I understand it, the :defaults is not supposed to include a file called "defaults.js"; it's supposed to include a few essential things like prototype.js and application.js.
Note that in my case, the following works fine. It's just that I'd rather use the official recommended way, if possible:
I'm running Rails 3.2.8 with ruby 1.9.3.
I do not have the following line in my config/application.rb (in any form). To migrate to Rails 3, I created a new Rails 3 application, and used that application.rb as a starting point:
Util.js application.js controls.js dragdrop.js effects.js prototype.js
... and a bunch of stuff specific to my application.
Since Rails 3.1, it uses assets pipeline. It means you need to change your management of assets.
You have a
//= require jquery //= require jquery_ujs //= require_tree .
It's exactly the same thing with stylesheets.
I suggest you read more about here
Hope this helps