title: How to put an email address in url on Rails
body: <p>I want to invite people who passes their email inside an url like this:</p>
  
  <pre><code>localhost:3000/invite_me/email@gmail.com
  </code></pre>
  
  <p>I tried this <code>match</code> but it isn't working.</p>
  
  <pre><code>match "/invite_me/:email" =&gt; "application#invite_me",
      :constraints =&gt; { :email =&gt; '/.+@.+\..*/' }
  </code></pre>
  
  <p>I'm getting the following error:</p>
  
  <pre><code>No route matches [GET] "/invite_me/waldyr.ar@gmail.com"
  </code></pre>
  
  <p>rake routes output:</p>
  
  <pre><code>root  /                           application#index
    /invite_me/:email(.:format) application#invite_me {:email=&gt;"/.+@.+\\..*/"}
  </code></pre>