开发者

Rails 2 to 3 routing question

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜