.

Wednesday, August 4, 2010

ActiveScaffold - ROR. dynamically created goodness

Enter the ActiveScaffold plugin. The successor to the popular AjaxScaffold project that amassed over 36,000 downloads, ActiveScaffold provides you with a wealth of dynamically created goodness:



An AJAXified table interface for creating, updating, and deleting objects

Automatic handling of ActiveRecord associations

Sorting, Search and Pagination

Graceful JavaScript degradation

RESTful API support (XML/YAML/JSON) baked in

Sexy CSS styling and theming support

More extension points than you can shake a stick at

Guaranteed to work on Firefox 1+, IE 6+ and Safari 2+

Released under the MIT License, the same one as Rails itself, so you can use it freely in your commercial applications.

Getting Started (or read the full tutorial)

Install the latest version of the plugin for latest stable rails (2.3.x) (May require git to be installed).



Rails-2.3 branch is more stable:

script/plugin install git://github.com/activescaffold/active_scaffold.git -r rails-2.3

Master branch has new features, but can be unstable or break backwards compatibility, although is unfrequent:

script/plugin install git://github.com/activescaffold/active_scaffold.git

or keep the .git directory and get the latest updates as the core team submits them:

cd vendor/plugins

git clone git://github.com/activescaffold/active_scaffold.git

Add this to your layout:





Add this to your controller:



active_scaffold :.. for example:



class UsersController < ApplicationController

active_scaffold :user

endThat’s it! Your first ActiveScaffold is up and running. But if you crave more, read on!

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Macys Printable Coupons