Methods

Files

Markaby::Rails::RailsBuilder

Public Instance Methods

form_for(*args, &block) click to toggle source
# File lib/markaby/rails/rails_builder.rb, line 4
def form_for(*args, &block)
  @_helper.output_buffer = OutputBuffer.new

  @template.form_for(*args) do |__form_for_variable|
    # flush <form tags> + switch back to markaby
    text(@_helper.output_buffer)
    @_helper.output_buffer = self

    yield FormHelperProxy.new(@_helper, __form_for_variable)

    # switch back to output string output buffer and flush
    # final </form> tag
    @_helper.output_buffer = OutputBuffer.new
  end
  text(@_helper.output_buffer)

  # finally, switch back to our regular buffer
  @_helper.output_buffer = self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.