Asset Pipeline Issue Upgrading Rails 3.0 app to Rails 3.2
-
12-12-2019 - |
Question
I've followed the instructions for the Railscast on upgrading a Rails app to 3.1:
http://railscasts.com/episodes/282-upgrading-to-rails-3-1?view=asciicast
The server doesn't recognize requests for any folders within app/assets
.
Just to be sure, I've run rake rails:update
and diff'd the files against what we have. It looks like every old config flag has been removed and every new config flag has been set.
When I load the homepage, I see the following in the javascript console:
"NetworkError: 404 Not Found - http://localhost:3000/assets/application.js"
"NetworkError: 404 Not Found - http://localhost:3000/assets/application.css"
Does anyone have any suggestions? I'm completely stumped, short of creating a new app and moving things over.
Solution
The issue was with the active_reload
gem in our project. Disabling it in the gemfile and running bundle install
fixed the issue
Apparently the first statement on the project page is that it's incompatible with Rails 3.2.x.