Merge pull request #584 from jbielick/master

Enabling nested resources.
This commit is contained in:
Matthew Eernisse
2014-05-25 13:01:22 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ router.get('/').to('Main.index');
// router.resource('hemispheres');
//
// Nested Resource-based routes
// router.resource('hemispheres', function(){
// router.resource('hemispheres').nest(function(){
// this.resource('countries');
// this.get('/print(.:format)').to('Hemispheres.print');
// });

View File

@@ -76,7 +76,7 @@ exports.create = function (data) {
}
else if (typeof val === 'object') {
// Skip the item if it's just a format
if (val.path === '.:format') {
if (/:([a-z]+_?)*format$/i.test(val.path)) {
continue;
}