Upload
greg-bell
View
5.765
Download
1
Tags:
Embed Size (px)
DESCRIPTION
The lightning talk I gave at RailsConf 2011
Citation preview
ActiveAdminThe administration framework for Ruby on Rails
Why?
Complexity of Application
Complexity of Administration
Production Application Administration != CRUD
Dashboards, Analytics, Auditing, Reporting, Admin Notes, Admin Users, Groups & Permissions, Search & Finding Resources, CSV Export, Filtered Lists, API, Notifications, etc...
+ CRUD
Goals:* Fast for developers* Usable by operations staff* Encode interface best practices* Extendable to meet req’s
# Add to Gemfile...gem "activeadmin"
# Install...$> rails generate active_admin:install
# Migrate..$> rake db:migrate
# Voila! Visit http://localhost:3000/admin$> rails server
$> rails g active_admin:resource Post
# app/admin/posts.rbActiveAdmin.register Post doend
`
# app/admin/products.rbActiveAdmin.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 filter :price filter :created_at
# Customize columns displayed on the index screen in the table index do id_column column("State"){|product| status_tag product.state } column :title column "Price", :sortable => :price do |product| number_to_currency product.price end default_actions endend
We love pull requests!Twitter: @gregbellhttp://activeadmin.infogithub.com/gregbell/active_admin