Module: Markaby::Rails::ActionControllerHelpers
- Defined in:
- lib/markaby/rails/deprecated.rb
Overview
Markaby helpers for Rails.
Instance Method Summary collapse
-
#render_markaby(options = {}, &block) ⇒ Object
Returns a string of HTML built from the attached
block
.
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( = {}, &block) render .merge({ :text => Builder.new([:locals], self, &block).to_s }) end |