magic_form

The laziest way to implement a Form. This gem extends Rails 3 ActionView::Helpers.

Installation

Rails 3

Include it on your Gemfile:

gem 'magic_form'

And install it

bundle install

Usage

You have to call in your view to the helper magic_form. Example:

= raw magic_form(@user)

Also, you can define your own attribute layer message. Example:

= raw magic_form(@user, :name => “User name: ”, :submit => “Save”)

You can add a nested resource, like a user that is an admin. Example:

= raw magic_form(:admin, @user)

To Do

Contributing to magic_form

Copyright © 2010 Luis Galaviz. See LICENSE.txt for further details.