Reputation: 3331
Im using the book railsspace but its made for rails 2 ive ran in to a bit of a snag the rails 2 routing looks like this
map.connect 'profile/:screen_name', :controller => 'profile', :action => 'show'
how do i make it work for rails 3 routing?
Upvotes: 0
Views: 37
Reputation: 4799
match 'profile/:screen_name' => 'profile#show'
To learn more, read this guide on EngineYard.
Upvotes: 1