File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ active_admin_sidebar
44easy change sidebar position with activeadmin
55
66
7- 1) change sidebar position dynamically with before_filter
7+ to change sidebar position dynamically with before_filter
88
99 # app/admin/posts.rb
1010 ActiveAdmin.register Post do
@@ -18,7 +18,7 @@ easy change sidebar position with activeadmin
1818
1919
2020
21- 2) move sidebar to left within all resource (config/initializers/active_admin.rb)
21+ to move sidebar to left within all resource (config/initializers/active_admin.rb)
2222
2323
2424 # == Controller Filters
@@ -28,8 +28,13 @@ easy change sidebar position with activeadmin
2828 #
2929 config.before_filter :left_sidebar!
3030
31+ to disable using sidebar layout on dashboards (if you setup sidebar position with initializer)
3132
32-
33+ ActiveAdmin.register_page "Dashboard" do
34+ controller {skip_before_filter :left_sidebar!}
35+ #.....
36+ end
37+
3338Add including of css file
3439
3540 @import "active_admin_sidebar";
@@ -38,6 +43,9 @@ to the app/assets/stylesheets/active_admin.css.scss
3843
3944
4045
46+
47+
48+
4149http://oi45.tinypic.com/1zx1a3r.png
4250
4351
You can’t perform that action at this time.
0 commit comments