Module: Markaby::Rails::ActionControllerHelpers

Defined in:
lib/markaby/rails/deprecated.rb

Overview

Markaby helpers for Rails.

Instance Method Summary collapse

Instance Method Details

#render_markaby(options = {}, &block) ⇒ Object

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.



53
54
55
# File 'lib/markaby/rails/deprecated.rb', line 53

def render_markaby(options = {}, &block)
  render options.merge({ :text => Builder.new(options[:locals], self, &block).to_s })
end