Welcome

Most web applications have many more model objects exposed on the backend, or admin side, than they do on the front. Coding interfaces for all those models is redundant and a waste of resources when all you need is CRUD functionality that’s smart enough to handle all your ActiveRecord associations.

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 (3.1.x):

gem install active_scaffold

Add require active_scaffold to your assets pipeline.

Then use active_scaffold or active_scaffold_controller generators instead of resource or controller generators. They will create controllers with active_scaffold enabled, and active_scaffold routes:

rails g active_scaffold Model attr1:type attr2:type ...

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

Further Reading

Alternatives

We want you to find the best dynamic interface builder solution for your individual needs. Here are some other projects attacking similar problems that you might want to check out if ActiveScaffold isn’t what you’re looking for: