Plugins - Fieldset Helper

StarAdd to favorites

FormHelperFieldset
==================

Block method for creating the fieldset tag with or without a legend.


Example
=======

<% fieldset do %>
<%= f.label :foo %>
<%= f.text_field :foo %>
<% end %>

or

<% fieldset "Foo Options" do %>
<%= f.label :foo %>
<%= f.text_field :foo %>
<% end %>

Copyright (c) 2008 Zach Inglis, released under the MIT license

Zach Inglis

http://github.com/zachinglis/rails-plugins/tree/master/form_helper_fieldset/

Rails' (MIT)

  • Currently 5.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

View Extensions

Tags

Comments

Add a comment
Brad Gessler 24 Feb 2008

I'd like to see some sort of form error handling in this plugin. Perhaps if any of the fields within the fieldset tag have errors; the fieldset plugin would also have the attribute:

class="fieldsWithErrors"

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?