module ActionView::Helpers::FormTagHelper
Public Instance Methods
form_tag(url_for_options = {}, options = {}, *parameters_for_url, &proc)
Also aliased as: form_tag_without_haml, form_tag_without_haml_xss
Alias for: form_tag_with_haml
form_tag_with_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc)
click to toggle source
# File lib/haml/helpers/action_view_mods.rb, line 111 def form_tag_with_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc) if is_haml? wrap_block = block_given? && block_is_haml?(proc) if wrap_block oldproc = proc proc = haml_bind_proc do |*args| concat "\n" with_tabs(1) {oldproc.call(*args)} end end res = form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc) << "\n" res << "\n" if wrap_block res else form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc) end end
Also aliased as: form_tag
form_tag_with_haml_xss(*args, &block)
click to toggle source
# File lib/haml/helpers/action_view_xss_mods.rb, line 19 def form_tag_with_haml_xss(*args, &block) res = form_tag_without_haml_xss(*args, &block) res = Haml::Util.html_safe(res) unless block_given? res end
Also aliased as: form_tag
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