Module: Formize::Helpers::TagHelper

Defined in:
lib/formize/helpers/tag_helper.rb

Instance Method Summary collapse

Instance Method Details

#hard_content_tag(name, options = {}, escape = true) {|content| ... } ⇒ Object

Permits to use content_tag in helpers using string concatenation

Yields:

  • (content)


6
7
8
9
10
# File 'lib/formize/helpers/tag_helper.rb', line 6

def (name, options={}, escape=true, &block)
  content = ''
  yield content
  return (name, content.html_safe, options, escape)
end