tpeden/express-resource-new — pull request #9 by standup75 (2013-10-14 19:01:52+00:00)
Title: Custom routes registered first, so collection are not overriden by the show default route

comments = this.resource('comments', function() {
this.collection.get('search');
this.member.get('reply');
});

the 'search' action was registered after the default mapping, so comments/search was redirected to the comment's show action with search as id, and never reached the 'search' custom action.

This pull request makes sure that the custom actions are registered first and thus not caught be the default mapping