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 1c249b37e466342003416b4d99da6fb7c77108f5
tree af068f807a24bc8ba70f4912e2eaf9c37f759d37
parent a27c0630fa3cf3d757a1992b0d50b8f91e09c82d
tree af068f807a24bc8ba70f4912e2eaf9c37f759d37
parent a27c0630fa3cf3d757a1992b0d50b8f91e09c82d
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Nov 05 08:58:42 -0800 2008 | |
| |
Generators | Wed Nov 12 03:37:11 -0800 2008 | |
| |
LICENSE | Sun Sep 14 12:38:52 -0700 2008 | |
| |
README | Sun Sep 14 12:58:50 -0700 2008 | |
| |
Rakefile | Wed Nov 05 08:58:04 -0800 2008 | |
| |
TODO | Sun Sep 14 12:38:52 -0700 2008 | |
| |
lib/ | Sat May 16 09:09:55 -0700 2009 | |
| |
spec/ | Sun Sep 14 12:52:46 -0700 2008 | |
| |
test/ | Sun Sep 14 12:38:52 -0700 2008 |
README
merb-simple-forms
=================
A plugin for the Merb framework that provides an automatic form generation.
How to use?
===========
1. install merb-simple-forms
git clone git://github.com/maxime/merb-simple-forms.git
cd merb-simple-forms
sudo rake install
2. dependency ""merb-simple-forms" in your config/init.rb
3. add include Merb::Helpers::SimpleFormsHelpers to app/controllers/application.rb
4. add the form definition to your model:
def self.form_definition
{:attributes => [
{:email => {:control => :text_field}},
{:password => {:control => :password_field}},
{:password_confirmation => {:control => :password_field, :label => "Please confirm your password"}}
]}
end
5. use the render_form for rendering your form:
<%= render_form :user %>
6. you're done!
TODO
====
- write specs
- clean up some code
- add documentation






