diff options
| author | mo k <mo@mokhan.ca> | 2012-02-29 20:50:23 -0700 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-02-29 20:50:23 -0700 |
| commit | 29fc85fbec3ca220d6dfaa38ea7e71c2c195ec7e (patch) | |
| tree | b7d73ed17100d7908cde9c662e1e8a7369de877c /config/initializers | |
| parent | d07feb75ec40f68a8b011d3a61195798c2d78cae (diff) | |
add active admin. go to http://??/admin/ username:admin@example.com password:password
Diffstat (limited to 'config/initializers')
| -rw-r--r-- | config/initializers/active_admin.rb | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/config/initializers/active_admin.rb b/config/initializers/active_admin.rb new file mode 100644 index 00000000..c67771ad --- /dev/null +++ b/config/initializers/active_admin.rb @@ -0,0 +1,103 @@ +ActiveAdmin.setup do |config| + + # == Site Title + # + # Set the title that is displayed on the main layout + # for each of the active admin pages. + # + config.site_title = "Cake" + + # Set the link url for the title. For example, to take + # users to your main site. Defaults to no link. + # + # config.site_title_link = "/" + + # == Default Namespace + # + # Set the default namespace each administration resource + # will be added to. + # + # eg: + # config.default_namespace = :hello_world + # + # This will create resources in the HelloWorld module and + # will namespace routes to /hello_world/* + # + # To set no namespace by default, use: + # config.default_namespace = false + # + # Default: + # config.default_namespace = :admin + + # == User Authentication + # + # Active Admin will automatically call an authentication + # method in a before filter of all controller actions to + # ensure that there is a currently logged in admin user. + # + # This setting changes the method which Active Admin calls + # within the controller. + config.authentication_method = :authenticate_admin_user! + + + # == Current User + # + # Active Admin will associate actions with the current + # user performing them. + # + # This setting changes the method which Active Admin calls + # to return the currently logged in user. + config.current_user_method = :current_admin_user + + + # == Logging Out + # + # Active Admin displays a logout link on each screen. These + # settings configure the location and method used for the link. + # + # This setting changes the path where the link points to. If it's + # a string, the strings is used as the path. If it's a Symbol, we + # will call the method to return the path. + # + # Default: + # config.logout_link_path = :destroy_admin_user_session_path + + # This setting changes the http method used when rendering the + # link. For example :get, :delete, :put, etc.. + # + # Default: + # config.logout_link_method = :get + + + # == Admin Comments + # + # Admin comments allow you to add comments to any model for admin use + # + # Admin comments are enabled by default in the default + # namespace only. You can turn them on in a namesapce + # by adding them to the comments array. + # + # Default: + # config.allow_comments_in = [:admin] + + + # == Controller Filters + # + # You can add before, after and around filters to all of your + # Active Admin resources from here. + # + # config.before_filter :do_something_awesome + + + # == Register Stylesheets & Javascripts + # + # We recommend using the built in Active Admin layout and loading + # up your own stylesheets / javascripts to customize the look + # and feel. + # + # To load a stylesheet: + # config.register_stylesheet 'my_stylesheet.css' + # + # To load a javascript file: + # config.register_javascript 'my_javascript.js' +end |
