Thanks to Mike Gaffney and Kenney Ortmann for hosting this session, and for writing a cool framework!
Install:
script/plugin install
git://github.com/activescaffold/active_scaffold.git
Site says to pass -r rails-2.2 option; HEAD works fine for Rails 2.3.
Setting up a quick test app in Rails 2.3:
Create app/views/layouts/application.html.erb:
Ensure it contains a default HTML document.
Ensure it has in the body.
Add these lines to the HEAD tag:
Create a model with a few fields and a controller.
On your controller, add:
active_scaffold :model_name
Go view the index for the model (no need to create index.html.erb, def
index, etc.):
You should have full CRUD, sorting by column, etc.
Customizing:
ActiveScaffold.set_defaults {|config| ...} in your application
controller.
Model-specific settings in individual controllers.
Override ActiveScaffold's default views by creating a special folder in
your views directory.
Additional notes:
Home page doesn't get updated as often as it should, but project is
being actively maintained and used, and will support Rails 3.0 shortly
after its release.
For many-to-many relationships, you may need to have the view reference
the join model. See the mailing list.
Had this up and running in 10 minutes: