Module: Formize::Helpers::TagHelper
- Defined in:
- lib/formize/helpers/tag_helper.rb
Instance Method Summary collapse
-
#hard_content_tag(name, options = {}, escape = true) {|content| ... } ⇒ Object
Permits to use content_tag in helpers using string concatenation.
Instance Method Details
#hard_content_tag(name, options = {}, escape = true) {|content| ... } ⇒ Object
Permits to use content_tag in helpers using string concatenation
6 7 8 9 10 |
# File 'lib/formize/helpers/tag_helper.rb', line 6 def hard_content_tag(name, ={}, escape=true, &block) content = '' yield content return content_tag(name, content.html_safe, , escape) end |