Permalink
Browse files

Fixed bug: format was not appended on some routes.

  • Loading branch information...
1 parent 0bf02be commit 693c35af45cceaccd27ebb9a280424890deebcca @olalonde olalonde committed Nov 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/railway_routes.js
View
@@ -264,7 +264,7 @@ Map.prototype.resources = function (name, params, actions) {
var path = route[1];
// append format
- if (params.appendFormat) {
+ if (params.appendFormat !== false) {
if (path == '/') {
path = '.:format?';
} else {
@@ -287,7 +287,7 @@ Map.prototype.resources = function (name, params, actions) {
// params.path setting allows to override common path component
var effectivePath = (params.path || name) + path;
-
+console.log(effectivePath);
var controller = params.controller || name;
// and call map.{get|post|update|delete}

0 comments on commit 693c35a

Please sign in to comment.