# irb
Application.controller.render(
template: 'orders/index'
end
ApplicationController.render('orders/index')
OrdersController.render('index')
Available Renders
:template
:plain
:action
:html
:partial
:json
:file
:js
:inline
:xml
# irb
users = Users.all
UsersController.render('index', assigns: { users: users }, layout: false).squish
# irb
user = User.first
UsersController.render(partial: 'user', locals: { user: user }).squish
# irb
ApplicationController.renderer.defaults
renderer = ApplicationController.renderer.new(method: 'post', https: true)
renderer.render partial: 'users/user', locals: { user: user}