Module ActionView::Helpers::FormHelper
In: lib/haml/helpers/action_view_mods.rb
Base\n[lib/haml/helpers/action_view_mods.rb\nlib/haml/template/patch.rb\nlib/haml/template/plugin.rb] InstanceTag lib/haml/template/plugin.rb lib/haml/helpers/action_view_mods.rb FormTagHelper TagHelper FormHelper TextHelper CaptureHelper Helpers ActionView dot/m_14_0.png

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

[Validate]