def form_tag_with_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc)
if is_haml?
wrap_block = block_given? && block_is_haml?(proc)
if wrap_block
oldproc = proc
proc = haml_bind_proc do |*args|
concat "\n"
tab_up
oldproc.call(*args)
tab_down
concat haml_indent
end
concat haml_indent
end
res = form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc) + "\n"
if block_given?
concat "\n"
return Haml::Helpers::ErrorReturn.new("form_tag")
end
res
else
form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc)
end
end