thunderdome
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:The ThunderDome is a management application for Rails models. It combines all of the functionality of CRUD, filtering, and paginating into 1 sinatra application.
# Welcome to the ThunderDome

This is an administrative panel for Rails styled models. In a nutshell, this application shows you a bunch of models in a list and lets you perform basic filtering, paginated displays and the usual edit/update/destroy functions.

The ThunderDome is released under the MIT license. See the `LICENSE` file for the complete text.

## Requirements

* Ruby
* Sinatra
* HAML
* Web browser with or without JavaScript support

## Paginated Viewing

All models get paginated views. 100 records per-page. Filtering is available.  It's all basic, but it really gets the job done and gets out of your way.

Sorting, by default, is `id ASC`. If you would like to change it, add a class method called `custom_order` that returns a string of the order you would like to use.

## Creation And Editing

The ThunderDome will introspect all of the objects and infer what needs to be done on each model and build a form with all of the attributes listed in alphabetical order. If a column is a boolean, it displays a checkbox, strings get a text field and texts get a text area. Parent model relationships (yes, it does those!) get a select.

## Has-Many / Belongs-To's

It will handle parent-child relationships. In the child paginated views, it will display the parent's ID as an integer, but it's an abbreviation and as long as your model responds to `to_s` it will put that into the full definition in the `` tag. In the edit view, it will provide a `