Module: Padrino::RenderFor
- Defined in:
- lib/padrino-render-for.rb
Instance Method Summary collapse
- #render_action ⇒ Object (also: #render_for_action)
- #render_for(data = nil, options = {}, locals = {}) ⇒ Object
Instance Method Details
#render_action ⇒ Object 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, ={}, locals={}) render("#{request.controller}/#{data == :action ? request.action : data}", , locals) end |