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)
    lines = (with_output_buffer { form_for(*args, &block) } || '').split("\n")
    content_for :form, lines.shift
    lines.pop
    concat lines.join("\n")
  end
def split_form_for ( * args , & block ) lines = ( with_output_buffer { form_for ( * args , & block ) } || '' ) . split ( "\n" ) content_for :form , lines . shift lines . pop concat lines . join ( "\n" ) 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
# for some weird reasons Passenger and Mongrel behave differently when using Rails' capture method # with_output_buffer -> works, so we use it for now
args
block