Re: Help with custom FormBuilder

Joshua Muheim
2007-03-21T22:03:54Z

Hrm about your above answer... I changed it to the following:

    def self.create_tagged_field(method_name, options = {})
      define_method(method_name) do |label, *args|
        html_surround(label, super(label, args), options) # Provides the
HTML code that surrounds the form label and the method (super) that
generates the input tag(s)
      end
    end

But now I get the following error:

undefined method `merge'' for []:Array