Module ActionView::Helpers::FormHelper
In: lib/haml/helpers/action_view_mods.rb

Methods

External Aliases

form_for -> form_for_without_haml

Public Instance methods

form_for(object_name, *args, &proc)

Alias for form_for_with_haml

[Source]

     # File lib/haml/helpers/action_view_mods.rb, line 156
156:       def form_for_with_haml(object_name, *args, &proc)
157:         if block_given? && is_haml?
158:           oldproc = proc
159:           proc = haml_bind_proc do |*args|
160:             tab_up
161:             oldproc.call(*args)
162:             tab_down
163:             concat haml_indent
164:           end
165:           concat haml_indent
166:         end
167:         form_for_without_haml(object_name, *args, &proc)
168:         concat "\n" if block_given? && is_haml?
169:       end

[Validate]