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

Methods

External Aliases

form_tag -> form_tag_without_haml

Public Instance methods

form_tag(*args, &block)
form_tag(url_for_options = {}, options = {}, *parameters_for_url, &proc)

Alias for form_tag_with_haml

form_tag(url_for_options = {}, options = {}, *parameters_for_url, &proc)

Alias for form_tag_with_haml

[Source]

     # File lib/haml/helpers/action_view_mods.rb, line 139
139:         def form_tag_with_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc)
140:           if is_haml?
141:             if block_given?
142:               oldproc = proc
143:               proc = haml_bind_proc do |*args|
144:                 concat "\n"
145:                 with_tabs(1) {oldproc.call(*args)}
146:               end
147:             end
148:             res = form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc) + "\n"
149:             res << "\n" if block_given?
150:             res
151:           else
152:             form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc)
153:           end
154:         end

[Source]

     # File lib/haml/helpers/action_view_mods.rb, line 174
174:         def form_tag_with_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc)
175:           if is_haml?
176:             if block_given?
177:               oldproc = proc
178:               proc = haml_bind_proc do |*args|
179:                 concat "\n"
180:                 tab_up
181:                 oldproc.call(*args)
182:                 tab_down
183:                 concat haml_indent
184:               end
185:               concat haml_indent
186:             end
187:             res = form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc) + "\n"
188:             concat "\n" if block_given?
189:             res
190:           else
191:             form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc)
192:           end
193:         end

[Source]

     # File lib/haml/helpers/xss_mods.rb, line 114
114:       def form_tag_with_haml_xss(*args, &block)
115:         Haml::Util.html_safe(form_tag_without_haml_xss(*args, &block))
116:       end
form_tag_without_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc)

Alias for form_tag

form_tag_without_haml_xss(url_for_options = {}, options = {}, *parameters_for_url, &proc)

Alias for form_tag

[Validate]