Edgar
Edgar provides CRUD functions on controller and view for any model as follows:
-
Ajax CRUD
-
sort by clicking column header
-
QBE(Query By Example) search (under construction, sorry)
-
CSV download
-
popup for belongs_to attribute
Edgar is similar to scaffold, or active_scaffold. Please see 'How to use' below.
Edgar is implemented as Rails Engine.
Assumption
-
Rails 3.2.8, Ruby 1.9.3
-
Edgar assumes to store session in active_record_store (storing session in DB table).
Coding Convention
-
Model should have 'name' attribute or method.
-
Model's human-readable unique key is 'code'. (no key, login_id, etc.)
-
Before_filter method name is 'require_***'
-
Helper method name is 'draw_***'
-
Unit/Functional test private method name for testing is 'check_***'
-
migration name begin with 'edgar_'.
License
This project rocks and uses MIT-LICENSE.
TODO
-
EdgarCrm, a mountable rails engine based on Edgar
-
Authentication
-
password lifetime
-
password history
-
password complexity
-
-
QBE
-
operator selection
-
date-picker
-