Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

sleewoo / rear   ruby

Repository URL to install this package:

  assets
  bin
  docs
  lib
  test
  .travis.yml
  CHANGELOG.md
  Gemfile
  README.md
  Rakefile
  rear.gemspec
 
  README.md

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 and Slim
  • 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 | Rich Text Editors | Readonly/Disabled | Rows | Tabs | HTML Attributes | Loading Data [Inline Templates](https://github.com/espresso/rear/blob/master/docs/Columns.md#Inline Templates) | Hiding Columns | Ignored 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

Author - Walter Smith. License - MIT.