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?
match 'profile/:screen_name' => 'profile#show'
To learn more, read this guide on EngineYard.
精彩评论