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 190
190:         def form_tag_with_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc)
191:           if is_haml?
192:             if block_given?
193:               oldproc = proc
194:               proc = haml_bind_proc do |*args|
195:                 concat "\n"
196:                 tab_up
197:                 oldproc.call(*args)
198:                 tab_down
199:                 concat haml_indent
200:               end
201:               concat haml_indent
202:             end
203:             res = form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc) + "\n"
204:             if block_given?
205:               concat "\n"
206:               return Haml::Helpers::ErrorReturn.new("form_tag")
207:             end
208:             res
209:           else
210:             form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc)
211:           end
212:         end

[Source]

     # File lib/haml/helpers/xss_mods.rb, line 121
121:       def form_tag_with_haml_xss(*args, &block)
122:         res = form_tag_without_haml_xss(*args, &block)
123:         res = Haml::Util.html_safe(res) unless block_given?
124:         res
125:       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]