Sha256: 1c7aabd6126041ebcabb9de3b81cbf0e187354ea0ae8c30bf0147abb5bedbf6a
Contents?: true
Size: 447 Bytes
Versions: 4
Compression:
Stored size: 447 Bytes
Contents
module Markaby module Rails module ActionControllerHelpers # Returns a string of HTML built from the attached +block+. Any +options+ are # passed into the render method. # # Use this method in your controllers to output Markaby directly from inside. def render_markaby(options = {}, &block) render options.merge({ :text => Builder.new(options[:locals], self, &block).to_s }) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems