Reputation: 2332
I've upgraded ActiveAdmin from 0.2.2 to 0.4.3 and Rails from 3.0.0 to 3.2.3. I called "rails generate active_admin:assets" as part of the ActiveAdmin upgrade process. I get the error below when I try to access the ActiveAdmin root directory (http://localhost:3000/admin). Any help would be greatly appreciated.
Started GET "/admin" for 127.0.0.1 at 2012-05-13 10:31:51 -0700
Processing by Admin::DashboardController#index as HTML
Geokit is using the domain: localhost
User Load (0.2ms) SELECT users
.* FROM users
WHERE users
.id
= 1 LIMIT 1
Rendered /home/js/.rvm/gems/ruby-1.9.3-p194/gems/activeadmin-0.4.3/app/views/active_admin/dashboard/index.html.arb (77.3ms)
Completed 500 Internal Server Error in 86ms
ActionView::Template::Error (undefined method `destroy_admin_user_session_path' for #): 1: render view_factory.dashboard_page
Full trace here: http://pastebin.com/raw.php?i=W4bzay3t
config/initializers/active_admin.rb:
ActiveAdmin.setup do |config|
config.site_title = "SiteName"
config.default_namespace = :admin
config.authentication_method = :admin_user?
config.current_user_method = :current_user
end
Upvotes: 1
Views: 1132
Reputation:
This will work if rake routes show this
signout /signout(.:format) sessions#destroy
Hope this help
ActiveAdmin.setup do | config | ... config.logout_link_path = :signout_path ... end
Upvotes: 0
Reputation: 3091
Try this in your config block:
ActiveAdmin.setup do | config |
...
config.logout_link_path = :signout_path
...
end
Cheers.
Upvotes: 1