Rod Nelson
Rod Nelson

Reputation: 3331

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?

Upvotes: 0

Views: 37

Answers (1)

Shaun
Shaun

Reputation: 4799

match 'profile/:screen_name' => 'profile#show'

To learn more, read this guide on EngineYard.

Upvotes: 1

Related Questions