# File lib/markaby/rails/current.rb, line 70 70: def capture(*args, &block) 71: if output_buffer.kind_of?(Markaby::Builder) 72: output_buffer.capture(&block) 73: else 74: super 75: end 76: 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 61: def url_for(options={}) 62: case options 63: when Markaby::Fragment 64: super(options.to_s) 65: else 66: super 67: end 68: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.