difference between collection route and member route in ruby on rails?

A member route will require an ID, because it acts on a member. A collection route doesn’t because it acts on a collection of objects. Preview is an example of a member route, because it acts on (and displays) a single object. Search is an example of a collection route, because it acts on (and displays) a collection of objects.

Leave a Comment