I’m following a tutorial (the learning rails podcast) and need to change the following route syntax so that it’s compatible with Rails 3.0. can anyone help?
map.view_page ':name', :controller => 'viewer', :action => 'show'
thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you generate a new Rails 3 app, the boilerplate
routes.rbhas some decent examples in it, including this one.Given what you have above, this would translate to the following.
If you check this with
rake routesyou’ll see this.