Sha256: 90b44382af093e98ab6273d6aca63dd6a6d0d93d6a5c1f2612c185e75410f1bd

Contents?: true

Size: 996 Bytes

Versions: 1

Compression:

Stored size: 996 Bytes

Contents

active_admin_sidebar
====================

easy change sidebar position with activeadmin


to change sidebar position dynamically with before_filter

  # app/admin/posts.rb
  ActiveAdmin.register Post do
    before_filter :left_sidebar!, :only=>[:show]
  end

  # app/admin/comments.rb
  ActiveAdmin.register Comment do
    before_filter :right_sidebar!
  end



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




Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_admin_sidebar-0.0.4 README.rdoc