README.rdoc in active_admin_sidebar-0.0.3 vs README.rdoc in active_admin_sidebar-0.0.4
- old
+ new
@@ -2,11 +2,11 @@
====================
easy change sidebar position with activeadmin
-1) change sidebar position dynamically with before_filter
+to change sidebar position dynamically with before_filter
# app/admin/posts.rb
ActiveAdmin.register Post do
before_filter :left_sidebar!, :only=>[:show]
end
@@ -16,26 +16,34 @@
before_filter :right_sidebar!
end
-2) move sidebar to left within all resource (config/initializers/active_admin.rb)
+to move sidebar to left within all resource (config/initializers/active_admin.rb)
# == Controller Filters
#
# You can add before, after and around filters to all of your
# Active Admin resources from here.
#
config.before_filter :left_sidebar!
+to disable using sidebar layout on dashboards (if you setup sidebar position with initializer)
-
+ ActiveAdmin.register_page "Dashboard" do
+ controller {skip_before_filter :left_sidebar!}
+ #.....
+ end
+
Add including of css file
@import "active_admin_sidebar";
to the app/assets/stylesheets/active_admin.css.scss
+
+
+
http://oi45.tinypic.com/1zx1a3r.png