The Rails routing guide doesn’t specify what :on => :collection means.
I cannot find an explanation to what the :on key is, nor what a :collection is in that context.
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.
Routes on collections are listed here.
The difference between
:on => :collectionand:on => :memberare the style of route they produce and their associated route helpers.