Auto Admin plugin

Plugin details

A plugin for Ruby on Rails that automagically creates an administration interface, based on your models. It is heavily inspired by the Django administration system, and the only theme currently available is based directly on Django's administration system. From the screenshots posted so far, it appears to share goals with Streamlined.

Websitehttp://code.trebex.net/auto-admin/ Repositoryhttp://svn.trebex.net/auto-admin/trunk/auto-admin/ Author Matthew Draper Tags Admin LicenseUnknown

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 documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 9 months ago