How to force Rails to consider a param with a dot in the value like google.com (e.g. /some_action/google.com) a single param and not \"id\" =
google.com
/some_action/google.com
\"id\" =
And when used with the resources notation, it can be done like this:
resources :post, only: [ :create, :index, :destroy ], constraints: { id: /[0-z\.]+/ }
Tested in Rails 4.1