I am referring to a book according to which the “routes.rb” code is as
================= [Code] =====================
MeBay::Application.routes.draw do |map|
map.connect ‘ads/:id’, :controller=>‘ads’, :action=>‘show’
When I try to open this route from the browser by typing:
I am getting error:
You are using the old router DSL which has been removed in Rails 3.1.
Please check how to update your routes file at:
add the rails_legacy_mapper gem to your Gemfile
What changes are needed?