ioptics / clever_form_builder

Yet another custom form builder

This URL has Read+Write access

name age message
file .gitignore Loading commit data...
file MIT-LICENSE
file README.md
directory app/
file init.rb
directory lib/
directory test/
README.md

CleverFormBuilder

Yet another form builder that we've been using in house at Rawnet. Doesn't do anything particularly special but does support partials (both erb/haml), to replace the default simply create 'app/views/partials/_field.html.haml'.

Example

ERb

<% clever_form_for(@post) do |f| %>
  <%= f.text_field :title %>
  <%= f.submit %>
<% end %>

HAML

- clever_form_for(@post) do |f|
  = f.text_field :title
  = f.text_field :author
  = f.text_area :summary, :rows => 3
  = f.text_area :body
  = f.submit 'Save'

Copyright (c) 2009 Peter Lambert, released under the MIT license