Rails 4 + Devise: Invalid route name, already in use
You have two routes devise_for :users
in your routes.rb - remove the first one.
Invalid route name, already in use: 'user'
Since you are using devise there are some routes already created by devise_for users
so avoid using such routes which has conflict with already defined routes. Instead of using as: :user
put another relevant name like as::user_profile
Hope it helps
Rails 4: Invalid route name, already in use (ArgumentError)
Do the following instead of above:
resource :contact, only: [:new, :create]
OR
get 'contact' => 'contact#new'
post 'contact' => 'contact#create', :as => 'contact'
Invalid route name, already in use: 'admin_root' (ArgumentError) - Failed ActiveAdmin install
Solved it by uninstalling ActiveAdmin, reinstalling it, deleting the second ActiveAdmin.routes(self) in my routes file, then deleting my schema file. After that, I ran rake db:reset
and remigrated the database.
Related Topics
What Is the %W "Thing" in Ruby
Ror + Unable to Install Tiny_Tds
How to Override a Column in Rails Model
How to Install an Older Version of Jekyll
Maintaining Cookies Between Mechanize Requests
Heroku Wrongly Detecting My Node App as a Ruby App
Rails Link_To External Site, Url Is Attribute of User Table, Like: @Users.Website
Has_Many While Respecting Build Strategy in Factory_Girl
Creating a Capistrano Task That Performs Different Tasks Based on Role
Ruby To_JSON Issue with Error "Illegal/Malformed Utf-8"
Difference Between 'Self.Method_Name' and 'Class << Self' in Ruby
How to Make Carrierwave Delete the File When Destroying a Record
Ruby Open-Uri Redirect Forbidden
Can't Install Thrift Gem on Os X El Capitan
Rails App: Solr Throwing Rsolr::Error::Http - 404 Not Found When Executing Search