Nice way to be able to specify labels with greater control.

Another possibility is just to use the
:builder => ActionView::Helpers::FormBuilder option in
subforms/form_fors to work around lugging the TabularFormBuilder
around if that isn't needed/wished
pull/41/head
Felix Schäfer 13 years ago committed by Romano Licker
parent 7627ffadcf
commit 8196ccabec
  1. 2
      lib/tabular_form_builder.rb

@ -22,7 +22,7 @@ class TabularFormBuilder < ActionView::Helpers::FormBuilder
super
end
(field_helpers - %w(radio_button hidden_field fields_for) + %w(date_select)).each do |selector|
(field_helpers - %w(radio_button hidden_field fields_for label) + %w(date_select)).each do |selector|
src = <<-END_SRC
def #{selector}(field, options = {})
label_for_field(field, options) + super

Loading…
Cancel
Save