This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit ad7e5a870dc57a7bfe74b56b9c69ccb9e0c96933
tree e106d4470565cd3c772ec4cb56be50af7c5d94d3
parent a9ef898307e6745fcb4f8100e36cd34ac66e1cb5
tree e106d4470565cd3c772ec4cb56be50af7c5d94d3
parent a9ef898307e6745fcb4f8100e36cd34ac66e1cb5
autoform /
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | ||
| |
tasks/ | ||
| |
test/ | ||
| |
uninstall.rb |
README.rdoc
Autoform
Autoform is a Rails plugin that makes it easy to dynamically auto-generate a form for an ActiveRecord object. It cycles through all columns in the model and generates semantically correct form output with labels. Think of Autoform as a scaffolder that automatically keeps your forms current as you make changes to your model.
Installation
cd my_rails_app script/plugin install git://github.com/zeke/autoform.git
Usage
Stick this in your view:
<% autoform_for(@hamburgers) %>
By default, this will generate a form including all columns in the Hamburger model except id, created_at, and updated_at. If you want to make your own choices about which columns to include in the generated form, you can define an editable_columns class method:
def self.editable_columns
%w(name deliciousness price)
end
Copyright © 2009 Zeke Sikelianos, released under the MIT license








