title: how to set route with token as query string?
body: <p>I am using devise and trying to use token code with devise registration page, I know I have some issue with the routes to set the link. The link looks like this</p>
  
  <pre><code>http://localhost:3000/users/sign_up.asdfsdfasdffffffffffffffasdfasdf
  </code></pre>
  
  <p>a dot in between the query string and it doesn't work.</p>
  
  <p>my routes.rb is this</p>
  
  <pre><code>    devise_for :users ,:controllers =&gt; { :registrations =&gt; "registrations" } do
          #get "/register", :to =&gt; "devise/registrations#new"
            get 'users/sign_up/:invitation_token' =&gt; "registrations#new", :as =&gt;        :reg_with_code
        end
  </code></pre>
  
  <p>please help me to set a proper link with the slash in between .</p>
  
  <p>here is may rake routes</p>
  
  <pre><code>    invitations GET    /invitations(.:format)                     invitations#index
                       POST   /invitations(.:format)                          invitations#create
        new_invitation GET    /invitations/new(.:format)                 invitations#new
       edit_invitation GET    /invitations/:id/edit(.:format)            invitations#edit
            invitation GET    /invitations/:id(.:format)                 invitations#show
                       PUT    /invitations/:id(.:format)                   invitations#update
                       DELETE /invitations/:id(.:format)               
      invitations#destroy
             reg_with_code GET    /users/sign_up/:invitation_token(.:format)    registrations#new
           new_user_session GET    /users/sign_in(.:format)                      devise/sessions#new
              user_session POST   /users/sign_in(.:format)                      devise/sessions#create
      destroy_user_session DELETE /users/sign_out(.:format)                  devise/sessions#destroy
             user_password POST   /users/password(.:format)                  devise/passwords#create
         new_user_password GET    /users/password/new(.:format)              devise/passwords#new
        edit_user_password GET    /users/password/edit(.:format)             devise/passwords#edit
                       PUT    /users/password(.:format)                  devise/passwords#update
   cancel_user_registration GET    /users/cancel(.:format)                    registrations#cancel
         user_registration POST   /users(.:format)                           registrations#create
      new_user_registration GET    /users/sign_up(.:format)                   registrations#new
     edit_user_registration GET    /users/edit(.:format)                      registrations#edit
                       PUT    /users(.:format)                           registrations#update
                       DELETE /users(.:format)                           registrations#destroy
  users GET    /users(.:format)                           users#index
                       POST   /users(.:format)                           users#create
                 new_user GET    /users/new(.:format)                       users#new
                edit_user GET    /users/:id/edit(.:format)                  users#edit
                  user GET    /users/:id(.:format)                       users#show
                       PUT    /users/:id(.:format)                       users#update
                       DELETE /users/:id(.:format)                       users#destroy
                  root        /                                          home#index
  </code></pre>