# 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
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
Generated with the Darkfish Rdoc Generator 2.