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

Methods

External Aliases

form_for -> form_for_without_haml

Public Instance methods

form_for(*args, &block)
form_for(object_name, *args, &proc)

Alias for form_for_with_haml

form_for(object_name, *args, &proc)

Alias for form_for_with_haml

[Source]

     # File lib/haml/helpers/action_view_mods.rb, line 162
162:         def form_for_with_haml(object_name, *args, &proc)
163:           if block_given? && is_haml?
164:             oldproc = proc
165:             proc = proc {|*args| with_tabs(1) {oldproc.call(*args)}}
166:           end
167:           res = form_for_without_haml(object_name, *args, &proc)
168:           res << "\n" if block_given? && is_haml?
169:           res
170:         end

[Source]

     # File lib/haml/helpers/action_view_mods.rb, line 220
220:         def form_for_with_haml(object_name, *args, &proc)
221:           if block_given? && is_haml?
222:             oldproc = proc
223:             proc = haml_bind_proc do |*args|
224:               tab_up
225:               oldproc.call(*args)
226:               tab_down
227:               concat haml_indent
228:             end
229:             concat haml_indent
230:           end
231:           form_for_without_haml(object_name, *args, &proc)
232:           concat "\n" if block_given? && is_haml?
233:           Haml::Helpers::ErrorReturn.new("form_for") if is_haml?
234:         end

[Source]

     # 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
form_for_without_haml(object_name, *args, &proc)

Alias for form_for

form_for_without_haml_xss(object_name, *args, &proc)

Alias for form_for

[Validate]