Module: Cell::Haml::Rails::Helpers

Defined in:
lib/cell/haml/rails.rb

Instance Method Summary collapse

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(html_options, &block)
  content = capture(&block)
  form_tag_with_body(html_options, 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(html_options, content)
  "#{form_tag_html(html_options)}" << content.to_s << "</form>"
end