Posts

Showing posts from May, 2012

Active Admin

Image
Active Admin Documentation Active Admin is a framework for creating administration style interfaces. It abstracts common business application patterns to make it simple for developers to implement beautiful and elegant interfaces with very little effort. An elegant DSL built for developer productivity. Get started with one line of code or customize the entire interface with the provided DSL . # app/admin/posts.rb ActiveAdmin . register Product do # Create sections on the index screen scope :all , :default => true scope :available scope :drafts # Filterable attributes on the index screen filter :title filter :author , :as => :select , :collection => lambda { Product . authors } filter :price filter :created_at # Customize columns displayed on the index screen in the table index do column :title column "Price" , :sortable => :price do | product | numb...