Routing: set default action

5 views
Skip to first unread message

Viften Viften

unread,
Jan 15, 2015, 8:15:19 AM1/15/15
to ged...@googlegroups.com
GeddyVersion: 13.0.7
NodeVersion: iojs 1.0.1

Issue(s) - be specific/include console debugs:

Hello!

This is from wiki:
"...when either the controller or action aren’t present in the URL, you can map them in the to() method
r.match('/:controller/:id').to({action:'show'});"
This is my code:

r.match( '/:controller' ).to( { action: 'index' } );

Result: ERROR Worker 3660 died.

...\npm\node_modules\geddy\lib\template\helpers\action.js:43
name = controllerNames.property.plural + 'Path';
TypeError: Cannot read property 'property' of undefined
Reply all
Reply to author
Forward
0 new messages