Rear
ORM-agnostic CRUDifier for Espresso Framework (DEMO)
Highlights
ActiveRecord
,DataMapper
,Sequel
support- Associations of any type supported
- Fully dynamic interface, no scaffolding
- Custom templates when needed
- Minimal dependencies -
Espresso
andSlim
- Tested on all 1.9+ Rubies
Quick Start
require 'rear' # or add "gem 'rear'" to Gemfile
# model
class Page < ActiveRecord::Base
# ...
end
# controller
Rear.register Page do
# setups goes here, if any
end
Run
Rear.run
# or
E.new do
mount Rear.controllers
run
end
Tutorial
Setup
Primary key | Ordering | Items per page | Menu Label | Menu Positioning | Menu Grouping | ReadOnly Mode
Columns
Type |
Label |
Radio/Checkbox/Select |
Readonly/Disabled |
Rows |
HTML Attributes |
Loading Data
Hiding Columns |
Resetting Columns
Associations
Columns List | Ignored Associations | Readonly Associations
Filters
Type | Comparison Functions | Optioned Filters | Decorative Filters | Quick Filters
More
FileManager | Deploy | Demo
Contributing
- Fork Rear repository
- Make your changes
- Submit a pull request