module ActionView::Helpers::FormTagHelper

def form_tag_with_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc)

def form_tag_with_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc)
  if is_haml?
    if block_given?
      oldproc = proc
      proc = haml_bind_proc do |*args|
        concat "\n"
        tab_up
        oldproc.call(*args)
        tab_down
      end
    end
    res = form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc) + "\n"
    concat "\n" if block_given? && is_haml?
    res
  else
    form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc)
  end
end