Created
October 19, 2011 08:59
-
-
Save watson/1297786 to your computer and use it in GitHub Desktop.
As per request by http://groups.google.com/group/activeadmin/msg/87ae141ae19e889d here's my Active Admin dashboard and routes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveAdmin::Dashboards.build do | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
admin_dashboard /admin(.:format) {:action=>"index", :controller=>"admin/dashboard"} | |
... | |
new_user_session GET /users/sign_in(.:format) {:action=>"new", :controller=>"devise/sessions"} | |
user_session POST /users/sign_in(.:format) {:action=>"create", :controller=>"devise/sessions"} | |
destroy_user_session GET /users/sign_out(.:format) {:action=>"destroy", :controller=>"devise/sessions"} | |
user_password POST /users/password(.:format) {:action=>"create", :controller=>"devise/passwords"} | |
new_user_password GET /users/password/new(.:format) {:action=>"new", :controller=>"devise/passwords"} | |
edit_user_password GET /users/password/edit(.:format) {:action=>"edit", :controller=>"devise/passwords"} | |
PUT /users/password(.:format) {:action=>"update", :controller=>"devise/passwords"} | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyApp::Application.routes.draw do | |
filter :locale # add locale to the beginning of the url. e.g. /en/admin | |
ActiveAdmin.routes(self) | |
devise_for :users, | |
:controllers => { | |
:registrations => "registrations" | |
} | |
... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment