Class: Markaby::Rails::RailsBuilder

### Home Classes Methods

### In Files

- lib/markaby/rails/rails_builder.rb

### Parent

Markaby::Builder

### Namespace

- CLASS Markaby::Rails::RailsBuilder::FormHelperProxy
- CLASS Markaby::Rails::RailsBuilder::OutputBuffer

### Methods

- #form_for

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- Markaby
- Markaby::Builder
- Markaby::BuilderTags
- Markaby::CssProxy
- Markaby::Fragment
- Markaby::InvalidXhtmlError
- Markaby::Rails
- Markaby::Rails::ActionControllerHelpers
- Markaby::Rails::Helpers
- Markaby::Rails::RailsBuilder
- Markaby::Rails::RailsBuilder::FormHelperProxy
- Markaby::Rails::RailsBuilder::OutputBuffer
- Markaby::Rails::Template
- Markaby::Rails::TemplateHandler
- Markaby::Stream
- Markaby::Tilt
- Markaby::XHTMLFrameset
- Markaby::XHTMLStrict
- Markaby::XHTMLTransitional
- Markaby::XmlMarkup
- Sinatra
- Sinatra::Base
- Sinatra::Templates
- Kernel
- Object

No matching classes.

# 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.