Yet another custom form builder
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/views/partials
lib
test
.gitignore
MIT-LICENSE
README.md
init.rb

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