vendor/engines/adva_cms/app/helpers/base_helper.rb
# does exactly the same as the form_for helper does, but splits off the
# form head tag and captures it to the content_for :form collector
does exactly the same as the form_for helper does, but splits off the
form head tag and captures it to the content_for :form collector
does exactly the same as the form_for helper does but splits off the form head tag and captures it to the content_for : form collector
def split_form_for(*args, &block)
    buffer = eval(ActionView::Base.erb_variable, block.binding)
    out = capture_erb_with_buffer(buffer, *args) { form_for(*args, &block) }
    lines = out.split("\n")
    content_for :form, lines.shift
    lines.pop
    concat lines.join("\n"), block.binding
  end
def split_form_for ( * args , & block ) buffer = eval ( ActionView :: Base . erb_variable , block . binding ) out = capture_erb_with_buffer ( buffer , * args ) { form_for ( * args , & block ) } lines = out . split ( "\n" ) content_for :form , lines . shift lines . pop concat lines . join ( "\n" ) , block . binding end
does exactly the same as the form_for helper does, but splits off the
form head tag and captures it to the content_for :form collector
does exactly the same as the form_for helper does but splits off the form head tag and captures it to the content_for : form collector
args
block