Я пытаюсь использовать devise_token_auth с active_admin. При запуске rails g active_admin:install User
я получаю следующую ошибку.
ошибка
usr/local/lib/ruby/gems/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:578:in
add_route': Invalid route name, already in use: 'new_user_session' You may have defined two routes with the same name using the
:as`, или вы можете переопределить уже определенный маршрут ресурсом с тем же именем.
маршруты.rb
Rails.application.routes.draw do
devise_for :users, ActiveAdmin::Devise.config
ActiveAdmin.routes(self)
mount_devise_token_auth_for 'User', at: 'auth'
scope module: 'api' do
namespace :v1 do
resources :users, only: [:index, :show]
end
end
get '/docs' => redirect('/swagger/dist/index.html?url=/apidocs/api-docs.json')
end
rails routes -g new_user_session
? - person Wasif Hossain   schedule 17.11.2017devise_for
, я смогу запустить сервер, но не смогу войти в active_admin - person Antarr Byrd   schedule 17.11.2017