Fix for no expansion found for defaults error in Rails 3.0.4
Just a quick tech tip from our upgrade to Rails 3.0.4 this morning. Started with bundle update, fired up server, hit it with a browser and immediately got:
No expansion found for :defaults
After 30s of Googling, realize I hadn’t done a rake rails:update. Personally, I don’t like clobbering my app with unknown changes, so I typically create a new rails project and run a diff between the apps to see what is different between my app and the new hotness in the latest Rails release. I noticed a difference in config/application.rb in the comments:
In our app, for some reason, we had
A server restart and everything is back to normal.