Module: Cell::Haml::Rails::Helpers
- Defined in:
- lib/cell/haml/rails.rb
Instance Method Summary collapse
-
#form_tag_in_block(html_options, &block) ⇒ Object
From FormTagHelper.
- #form_tag_with_body(html_options, content) ⇒ Object
Instance Method Details
#form_tag_in_block(html_options, &block) ⇒ Object
From FormTagHelper. why do they escape every possible string? why?
10 11 12 13 |
# File 'lib/cell/haml/rails.rb', line 10 def form_tag_in_block(, &block) content = capture(&block) form_tag_with_body(, content) end |
#form_tag_with_body(html_options, content) ⇒ Object
15 16 17 |
# File 'lib/cell/haml/rails.rb', line 15 def form_tag_with_body(, content) "#{form_tag_html()}" << content.to_s << "</form>" end |