Merge pull request #126 from mbreit/bugfix/711-tabular_form_builder_ruby19

[#711] Fix TabularFormBuilder on Ruby 1.9

This is actually a bug in rails 2.3.14 on ruby 1.9 -- Felix
This commit is contained in:
Felix Schäfer 2011-11-25 11:04:35 -08:00
commit 574419bbb1
1 changed files with 1 additions and 1 deletions

View File

@ -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.map(&:to_s) - %w(radio_button hidden_field fields_for) + %w(date_select)).each do |selector|
src = <<-END_SRC
def #{selector}(field, options = {})
label_for_field(field, options) + super