title: Rails - Deploying to Heroku with duplicate routes
body: <p>I'm deploying my Rails app that uses the clearance gem to Heroku. Everything works fine in development but I'm running into trouble with the gem generated routes I get. </p>
  
  <p>When attempting to deploy to Heroku, I get the error...</p>
  
  <pre><code>ArgumentError: Invalid route name, already in use: 'sign_in'
  
  
  You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explained here:
  remote:        http://guides.rubyonrails.org/routing.html#restricting-the-routes-created
  </code></pre>
  
  <p>I'm not seeing where to restrict the duplicates or where they would be generated with any of my resources: </p>
  
  <p>Please see routes.rb file below</p>
  
  <p>Routes.rb</p>
  
  <pre><code>Rails.application.routes.draw do
  
    resources :passwords, controller: "clearance/passwords", only: [:create, :new]
    resource :session, controller: "clearance/sessions", only: [:create]
  
    resources :users, controller: "clearance/users", only: [:create] do
      resource :password,
        controller: "clearance/passwords",
        only: [:create, :edit, :update]
    end
  
    get "/sign_in" =&gt; "clearance/sessions#new", as: "sign_in"
    delete "/sign_out" =&gt; "clearance/sessions#destroy", as: "sign_out"
    get "/sign_up" =&gt; "clearance/users#new", as: "sign_up"
  
    get 'newSignUp', to: 'signups#new'
    post 'newSignUp', to: 'signups#create'
  
    get 'newTrip', to: 'trips#new'
    post 'newTrip', to: 'trips#create'
  
    get 'trips/:id/send_itinerary' =&gt; 'trips#send_itinerary', as: :trips_send_itinerary
  
  
  
    root 'static_pages#home'
    get 'static_pages/home'
    get 'static_pages/help'
    get 'static_pages/about'
    get 'static_pages/contact'
  
  
    resources :signups
    resources :tripitems
    resources :trips
  
  end
  </code></pre>