
-
- My three-fisted economic recovery package.
March 18 2009
- Today I quit my job
March 9 2009
- Rails 2.3.0 update Gotcha
February 12 2009
- ETV across the board in 2009
November 12 2008
- The Future of TV Advertising.
October 30 2008
- State of The ITV Onion: Time Warner
August 28 2008
- ITV Widget Engine
August 25 2008
- State Of The ITV Onion: Comcast
August 19 2008
- The State Of The ITV Onion
August 6 2008
- My awww moment of the day.
August 1 2008
- My three-fisted economic recovery package.
-
- FebRails 2.3.0 update Gotcha
12So I’m working on a Rails app that’s been going swimmingly until last night.
Messing around on my Mac laptop I ran
gem update
This ended up killing about 3 hours of my night and 20 minutes this morning when I finally figured out what happened.
The symptom was that I kept loading my main page and getting an error that my ApplicationController was missing.
uninitialized constant ApplicationController
This was strange because I still had my application.rb file, I could include the file in my controllers with “require application.rb” and get things to work, but this obviously wasn’t right.
I correctly thought I’d somehow hosed my gems which I spent about 2 hours mucking with last night. I realized I had Rails 2.3.0 which was new but couldn’t figure out what the heck was going on. Finally this morning I created a new rails skeleton to see if that would run out of the box. On doing so I realized that “application.rb” was now “application_controller.rb” in the skeleton app. A sensible change, but that meant I needed to rename my application.rb file to application_controller.rb. to get my rails app to work.
doh!
Leave a Reply




Thank you so much! Cause writing this post you saved my few hours of my own night!!!
This post is going to save lots of hours for lots of people. Great Job man!
OMG, thank you
thank you for sharing!
Thanks .It helps me a lot.Appreciate it!
Haha! Thanks
damn.. helped me a lot, too.
thanks
Thanks for that. Saved me a lot of time.
Wanna add my thanks as well. Googled for this for a long time without the “rails 2.3″ and couldn’t find anything.
thanks for posting this.
the internet is so awesome.
XD
Good thing I found this… Otherwise I would have spent hours on it. Thanks!
BTW, there is now a rake task for this.
rake rails:update:application_controller