Auto Admin plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install http://svn.trebex.net/auto-admin/trunk/auto-admin/
class Customer < ActiveRecord::Base belongs_to :store has_many :payments, :order => 'payment_date DESC' def name; first_name + ' ' + last_name; end sort_by :last_name search_by :first_name, :last_name filter_by :active, :store default_filter :active => true list_columns :store, :first_name, :last_name admin_fieldset do |b| b.text_field :first_name b.text_field :last_name b.select :store end admin_child_table 'Payments', :payments do |b| b.static_text :payment_date b.static_text :amount end end
Results in:
http://trebex.net/~matthew/auto-admin-0.0/list.png
http://trebex.net/~matthew/auto-admin-0.0/edit.png
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: hardway, 9 months ago

