title: send email as parameter in URL in Rails Error
body: <p>I know this subject has already discussed but I can't find deeper help through this <a href="https://stackoverflow.com/questions/35363017/unable-to-send-email-as-parameter-in-url-in-rails">post</a></p>
  
  <p>I try to create an API to find user based on the email. Unfortunately, I have this issue</p>
  
  <p>I get the same issue meaning my email get cut on the "."</p>
  
  <pre><code> User Load (37.3ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "aosidhasodih@gmuaksd"], ["LIMIT", 1]
  </code></pre>
  
  <p>I read about the advice to make sure to get the entire email and here my route now:</p>
  
  <pre><code>    Rails.application.routes.draw do
  get 'robots.:format', to: 'robots#index', constraints: { sender: /[^\/]+/}
  namespace :api, defaults: { format: :json } do
  namespace :v1 do
    resources :user, only: [:show], param: :email
  end
  end
  </code></pre>
  
  <p>But it does not work. Should I move the constraints: { sender: /[^/]+/} in another part?</p>