ShelbyTV / shelby_gt

Rails API services for Shelby GT
2 stars 0 forks source link

Routes can't accept user names with . in them #132

Closed iceberg901 closed 12 years ago

iceberg901 commented 12 years ago

Some of our routes take user nicknames as a parameter, and Rails by default does not allow . in url path segment parameters. Therefore the following routes, for example, using an actual Shelby user nickname don't work:

/v1/user/danny.kahn.58/rolls/personal /admin/user/danny.kahn.58

We need to allow . in these url parameters using the approach described here:

http://stackoverflow.com/questions/8718093/routing-in-rails-dots-in-url