Chicago Boss 0.3.5 fixes a few bugs, changes the association syntax,
and adds several new features.
Download:
http://www.chicagoboss.org/download.html
Release notes:
* Bug fix: non-string data could not be used in database searches
* Bug fix: Creating records in the /admin interface was broken
* Feature: New in-memory database option. Use {driver,
boss_db_driver_mock} in boss.config
* Feature: The /admin interface displays validation errors
* Feature: Support for the Misultin web server. Use {server,
misultin} in boss.config
* Feature: The beginnings of a functional test framework. See Test/
admin_test.erl for an example. More on this later. Run existing tests
with "make test".
* Change: Association syntax gets rid of "-has_many" and "-
has_up_to" and replaces them with "-has". Examples:
-has({manager, 1}).
-has({disciples, 12}).
-has({employees, many}).
The tuple can take a third argument, which is a proplist possibly
containing:
* sort_by - attribute to sort on. Defaults to 'id'
* sort_order - whether to sort numerically or as a string, and
ascending or descending. Valid values are:
+ str_ascending - As string in dictionary order A-Z
+ str_descending - As string in reverse dictionary order Z-A
+ num_ascending - As number, low numbers first
+ num_descending - As number, high numbers first
* module - If the assocation name is different than the
underlying module, use this option to specify the underlying module.
* foreign_key - If the associated module uses something
unexpected for the foreign key, use this option to specify the foreign
key (e.g. person_id).