Skip to content

Commit b0a7417

Browse files
committed
Update README.rdoc
1 parent eb0ee97 commit b0a7417

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

README.rdoc

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ active_admin_sidebar
44
easy change sidebar position with activeadmin (tested with active_admin-0.5.0)
55

66

7-
to change sidebar position dynamically with before_filter
7+
Add including of css file
8+
9+
@import "active_admin_sidebar";
10+
11+
to the app/assets/stylesheets/active_admin.css.scss
12+
13+
14+
Changing sidebar position dynamically with before_filter
815

916
# app/admin/posts.rb
1017
ActiveAdmin.register Post do
@@ -18,7 +25,7 @@ to change sidebar position dynamically with before_filter
1825

1926

2027

21-
to move sidebar to left within all resource (config/initializers/active_admin.rb)
28+
Moving sidebar to the left within all resource (config/initializers/active_admin.rb)
2229

2330

2431
# == Controller Filters
@@ -28,23 +35,14 @@ to move sidebar to left within all resource (config/initializers/active_admin.r
2835
#
2936
config.before_filter :left_sidebar!
3037

31-
to disable using sidebar layout on dashboards (if you setup sidebar position with initializer)
38+
Disabling using sidebar layout on dashboards (if you setup sidebar position with initializer)
3239

3340
ActiveAdmin.register_page "Dashboard" do
3441
controller {skip_before_filter :left_sidebar!}
3542
#.....
3643
end
3744

38-
Add including of css file
39-
40-
@import "active_admin_sidebar";
41-
42-
to the app/assets/stylesheets/active_admin.css.scss
43-
44-
45-
46-
47-
45+
Example
4846

4947
http://oi45.tinypic.com/1zx1a3r.png
5048

0 commit comments

Comments
 (0)