ruby on rails - ActiveAdmin login page -


i'm working first rails app activeadmin , i'm working on incorporating devise authentication mechanism. when user not authenticated, it's redirecting default devise login page.

i want default active admin login page , feel same. problem i'm not seeing active admin login page. such page exist?

looking @ rails cast: http://railscasts.com/episodes/284-active-admin?view=asciicast show login page @ localhost:3000/admin/login, gives me 404.

does know if there activeadmin login page , how can use it?

$ rake routes

    prefix verb   uri pattern                             controller#action                         root    /                                       admin/dashboard#index             new_user_session    /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    /users/password/new(.:format)           devise/passwords#new           edit_user_password    /users/password/edit(.:format)          devise/passwords#edit                              patch  /users/password(.:format)               devise/passwords#update                              put    /users/password(.:format)               devise/passwords#update                   admin_root    /admin(.:format)                        admin/dashboard#index              admin_dashboard    /admin/dashboard(.:format)              admin/dashboard#index batch_action_admin_estimates post   /admin/estimates/batch_action(.:format) admin/estimates#batch_action              admin_estimates    /admin/estimates(.:format)              admin/estimates#index                              post   /admin/estimates(.:format)              admin/estimates#create           new_admin_estimate    /admin/estimates/new(.:format)          admin/estimates#new          edit_admin_estimate    /admin/estimates/:id/edit(.:format)     admin/estimates#edit               admin_estimate    /admin/estimates/:id(.:format)          admin/estimates#show                              patch  /admin/estimates/:id(.:format)          admin/estimates#update                              put    /admin/estimates/:id(.:format)          admin/estimates#update                              delete /admin/estimates/:id(.:format)          admin/estimates#destroy     batch_action_admin_users post   /admin/users/batch_action(.:format)     admin/users#batch_action                  admin_users    /admin/users(.:format)                  admin/users#index                              post   /admin/users(.:format)                  admin/users#create               new_admin_user    /admin/users/new(.:format)              admin/users#new              edit_admin_user    /admin/users/:id/edit(.:format)         admin/users#edit                   admin_user    /admin/users/:id(.:format)              admin/users#show                              patch  /admin/users/:id(.:format)              admin/users#update                              put    /admin/users/:id(.:format)              admin/users#update                              delete /admin/users/:id(.:format)              admin/users#destroy 

routes.rb

myapp::application.routes.draw   root :to => "admin/dashboard#index"   devise_for :users   activeadmin.routes(self) end 

i'm using version 1.0.0.pre of activeadmin.

gemfile line:

gem 'activeadmin', github: 'gregbell/active_admin'  # need point @ github repo rails 4 compat. see answer paulcarvill here: https://github.com/gregbell/active_admin/issues/1963 

i needed modify routes file this:

devise_for :users 

to this:

devise_for :users, activeadmin::devise.config 

update

note: order important

  # works   devise_for :admin_users, activeadmin::devise.config   activeadmin.routes(self)    # won't work   activeadmin.routes(self)   devise_for :admin_users, activeadmin::devise.config 

otherwise, active-admin login won't show when hit admin/login normal login show up(if have setup devise 2 models).


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -