# File lib/erector/rails2/rails_form_builder.rb, line 5 def initialize(object_name, object, template, options, proc) @template = template @parent = ActionView::Base.default_form_builder.new(object_name, object, template, options, proc) end
# File lib/erector/rails2/rails_form_builder.rb, line 10 def method_missing(method_name, *args, &block) if parent.respond_to?(method_name) return_value = parent.send(method_name, *args, &block) if return_value.is_a?(String) template.concat(return_value) nil else return_value end else super end end