Created
November 26, 2015 07:46
-
-
Save bishisht/48782266f4307113abbb to your computer and use it in GitHub Desktop.
Cannot do sign up like this. Need to make localhost:3000/sign_up work. Now facing problem. Error: Unable to load application: ArgumentError: Invalid route name, already in use: 'new_user_registration' 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…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.routes.draw do | |
devise_for :users | |
get 'home/index' | |
get 'home/about' | |
get 'home/services' | |
devise_scope :user do | |
get "sign_in", to: "devise/sessions#new" | |
get "/sign_up" => "users/sessions#new", as: "new_user_registration" | |
end | |
root to: "home#index" | |
end |
SylarRuby
commented
Nov 26, 2015
Check the gemfile now:
Rails.application.routes.draw do
devise_scope :user do
get "/sign_in" => "devise/sessions#new"
get "/sign_up" => "devise/sessions#new", as: "new_user_registration"
end
devise_for :users
get 'home/index'
get 'home/about'
get 'home/services'
root to: "home#index"
end
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment