ruby on rails - Setting Active Admin namespace using active admin config -


i using active admin devise , im trying set namespace active admin routes.

in active_admin.rb have set default_namespace as,

config.default_namespace = :abc_123 

in route have,

  devise_for :admin_users, activeadmin::devise.config   activeadmin.routes(self) 

the routes generated such,

                           root        /                                              pages#home          new_admin_user_session        /abc_123/login(.:format)                  active_admin/devise/sessions#new              admin_user_session post       /abc_123/login(.:format)                  active_admin/devise/sessions#create                      admin_root        /admin(.:format)                              admin/dashboard#index               abc_123_root            /abc_123(.:format)                        abc_123/dashboard#index             abc_123_quotes            /abc_123/quotes(.:format)                 abc_123/quotes#index                            post           /abc_123/quotes(.:format)                 abc_123/quotes#create          abc_123_quote            /abc_123/quotes/new(.:format)             abc_123/quotes#new         edit_abc_123_quote        /abc_123/quotes/:id/edit(.:format)        abc_123/quotes#edit              abc_123_quote        /abc_123/quotes/:id(.:format)             abc_123/quotes#show batch_action_abc_123_users post       /abc_123/users/batch_action(.:format)     abc_123/users#batch_action              abc_123_users        /abc_123/users(.:format)                  abc_123/users#index 

the login works able login activeadmin account on dashboard breaks error,

actionview::template::error (undefined method `abc123_users_path' activeadmin::helpers::routes:module): 1: insert_tag active_admin_application.view_factory["page"] 

it breaks other active admin page same error. don't have 'abc123_users_path' path in route. im not getting route getting added active admin page.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -