Module Markaby::Rails::ActionControllerHelpers

  1. lib/markaby/rails/deprecated.rb

Markaby helpers for Rails.


public instance

  1. render_markaby

Public instance methods

render_markaby (options = {}, &block)

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.

[show source]
    # File lib/markaby/rails/deprecated.rb, line 53
53:       def render_markaby(options = {}, &block)
54:         render options.merge({ :text =>[:locals], self, &block).to_s })
55:       end