Ruby on Rails - url params with a period in ruby on rails- ruby on rails tutorial - rails guides - rails tutorial - ruby rails
- We want to support a url parameter more complex than an id number, we may run into trouble with the parser if the value contains a period.
- Anything following a period will be assumed to be a format (i.e. json, xml).
- We can work around this limitation by using a constraint to broaden the accepted input.
- For example, if you want to reference a user record by email address in the url: