(I am learning Rails and MVC development)
How does the rule
match ':controller(/:action(/:id))(.:format)'
match this URL ?
http://localhost:3000/people/1/edit
‘id’ (1) appears before ‘action’ (edit), so it should Not match , right ?
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.
That URL does not match that route.
That route is a fallback URL that should not be used in your applications. It exists as a suggestion in your routes file for legacy applications only.