Public instance methods
capture
(*args, &block)
[show source]
# File lib/markaby/rails/current.rb, line 71 71: def capture(*args, &block) 72: if output_buffer.kind_of?(Markaby::Builder) 73: output_buffer.capture(&block) 74: else 75: super 76: end 77: end
url_for
(options={})
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.
[show source]
# File lib/markaby/rails/current.rb, line 62 62: def url_for(options={}) 63: case options 64: when Markaby::Fragment 65: super(options.to_s) 66: else 67: super 68: end 69: end