No commit activity in last 3 years
No release in over 3 years
Table-based form builder for Rails 3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

TableFormBuilder

Sometimes it's not the end of the world to use an HTML table to build form views. Take for example http://www.twitter.com/signup.

Using table_form_for is just like form_for with the addition of the title and actions methods. Field labels are generated automatically. Validation errors on fields are displayed inline. Validation errors on models are displayed before any fields.

<% table_form_for @widget do |f| %>
	<%= f.title "Widget Properties" %>
	<%= f.text_field :name %>
	<%= f.text_field :description %>
	<%= f.check_box  :enabled %>
	<%= f.actions do %>
		<%= f.submit %>
		<%= link_to "Back", widgets_path %>
	<% end %>
<% end %>

Now wave your CSS wand over the generated HTML and you have yourself a table-based form.