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 160
160:       def form_for_with_haml(object_name, *args, &proc)
161:         if block_given? && is_haml?
162:           oldproc = proc
163:           proc = haml_bind_proc do |*args|
164:             tab_up
165:             oldproc.call(*args)
166:             tab_down
167:             concat haml_indent
168:           end
169:           concat haml_indent
170:         end
171:         form_for_without_haml(object_name, *args, &proc)
172:         concat "\n" if block_given? && is_haml?
173:       end

[Validate]