1602/railway-routes — pull request #9 by olalonde (2012-10-31 03:48:48+00:00)
Title: Added an optional parameter to disable the automatic appending of ".format?"

I added the optional parameter `param.appendFormat` which can disable the automatic appending of '.format?' if it is set to false.

This solve a problem I had with the following route:

map.resource('users' , { path: ':username' });

Since usernames can contain dots (i.e.: `my.username`) it would parse the URL this way:

{username: 'my', format: 'username'}

With this param.appendFormat I can now do:

map.resource('users' , { path: ':username', appendFormat: false });

And the URL is now parsed as expected:

{username: 'my.username'}