Updating Controller template to run with Rails 3.2.8

I am referring to a book according to which the "routes.rb" code is as
below:

================= [Code] =====================
MeBay::Application.routes.draw do |map|
  map.connect 'ads/:id', :controller=>'ads', :action=>'show'
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
end

Did you check the link given, it looks pretty good to me? Also see
the Rails Guide on Routing, it should sort you out.

Colin