Module: Padrino::RenderFor

Defined in:
lib/padrino-render-for.rb

Instance Method Summary collapse

Instance Method Details

#render_actionObject Also known as: render_for_action



7
8
9
# File 'lib/padrino-render-for.rb', line 7

def render_action
  render_for :action
end

#render_for(data = nil, options = {}, locals = {}) ⇒ Object



3
4
5
# File 'lib/padrino-render-for.rb', line 3

def render_for(data=nil, options={}, locals={})
  render("#{request.controller}/#{data == :action ? request.action : data}", options, locals)
end