Module: Markaby::Rails::Helpers

### Home Classes Methods

### In Files

- lib/markaby/rails/current.rb

### Methods

- #capture
- #url_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::Helpers

### Public Instance Methods

capture(*args, &block) click to toggle source

    # File lib/markaby/rails/current.rb, line 70
    def capture(*args, &block)
      if output_buffer.kind_of?(Markaby::Builder)
        output_buffer.capture(&block)
      else
        super
      end
    end

url_for(options={}) click to toggle source

allow fragments to act as strings. url_for has a case statment in it:

case options when String

    ...

which essential is doing the following:

String === options

That assertion fails with Markaby::Fragments, which are essential builder/string fragments.

    # File lib/markaby/rails/current.rb, line 61
    def url_for(options={})
      case options
      when Markaby::Fragment
        super(options.to_s)
      else
        super
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.