Upgrading Rails 3.0 Beta4 to Rails 3.0 Release Candidate

by Charles Max Wood on July 27, 2010

This video goes over some issues that popped up while upgrading a Rails 3 application to the Release Candidate

This video goes over some issues that popped up while upgrading a Rails 3 application to the Release Candidate.
Download 131 MB
Download (iphone & ipod) 11.7 MB

{ 6 comments }

John July 27, 2010 at 4:54 pm

Maybe the routes deprecation error is caused by the block variable 'map' that is passed? It's not needed anymore..

billsaysthis July 27, 2010 at 4:54 pm

For the DSL deprecation warning just take the |map| off the end of the start of the routing block:

YourApp::Application.routes.draw do

instead of

YourApp::Application.routes.draw do |map|

Andrius Chamentauskas July 27, 2010 at 7:38 pm

I really didn't check new Rails routing thoroughly, but I noticed you have “routes.draw do |map|”. If I had to guess, I'd guess the “|map|” part is the one giving you deprecation warnings.

woody2shoes July 27, 2010 at 11:04 pm

Thanks for the help. Feedback like this helps everyone and it's why I released a video without the answer in it.

Aaron Tinio July 27, 2010 at 11:58 pm

Running `rake rails:update` helped me zero in on the cause of the deprecation warning. You may also want to run `bundle update` (replaces lock and unlock) to update your gems.

Aaron Tinio July 28, 2010 at 1:01 am

In your Rakefile, Rails::Application needs to be changed to YourAppName::Application

Comments on this entry are closed.

blog comments powered by Disqus

Previous post:

Next post: