Skip to content

Commit f3b30c9

Browse files
committed
Merge branch 'master' of github.com:Fivell/active_admin_sidebar
2 parents 4f60fa0 + afe368f commit f3b30c9

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.rdoc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ active_admin_sidebar
44
easy 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+
3338
Add 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+
4149
http://oi45.tinypic.com/1zx1a3r.png
4250

4351

0 commit comments

Comments
 (0)