# File lib/haml/helpers/action_view_mods.rb, line 237 237: def form_for_with_haml(object_name, *args, &proc) 238: wrap_block = block_given? && is_haml? && block_is_haml?(proc) 239: if wrap_block 240: oldproc = proc 241: proc = haml_bind_proc do |*args| 242: tab_up 243: oldproc.call(*args) 244: tab_down 245: concat haml_indent 246: end 247: concat haml_indent 248: end 249: form_for_without_haml(object_name, *args, &proc) 250: concat "\n" if wrap_block 251: Haml::Helpers::ErrorReturn.new("form_for") if is_haml? 252: end
# File lib/haml/helpers/action_view_mods.rb, line 177 177: def form_for_with_haml(object_name, *args, &proc) 178: wrap_block = block_given? && is_haml? && block_is_haml?(proc) 179: if wrap_block 180: oldproc = proc 181: proc = proc {|*args| with_tabs(1) {oldproc.call(*args)}} 182: end 183: res = form_for_without_haml(object_name, *args, &proc) 184: res << "\n" if wrap_block 185: res 186: end
# File lib/haml/helpers/xss_mods.rb, line 131 131: def form_for_with_haml_xss(*args, &block) 132: res = form_for_without_haml_xss(*args, &block) 133: return Haml::Util.html_safe(res) if res.is_a?(String) 134: return res 135: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.