method
render
Ruby on Rails latest stable (v2.3.4)
-
0 notes -
Class: ActionView::Base
- 1.0.0 (0)
- v1.1.0
- v1.1.1
- v1.1.2
- v1.1.3
- v1.1.4
- v1.1.5
- v1.1.6
- v1.2.0
- v1.2.1
- v1.2.2
- v1.2.3
- v1.2.4
- v1.2.5
- v1.2.6
- v2.0.0
- v2.0.1
- v2.0.2
- v2.0.3
- 2.1.0 (0)
- 2.2.1 (0)
- 2.3.2 (38)
- 2.3.4 (0)
- What's this?
render(options = {}, local_assigns = {}, &block)
public
Returns the result of a render that’s dictated by the options hash. The primary options are:
- :partial - See ActionView::Partials.
- :update - Calls update_page with the block given.
- :file - Renders an explicit template file (this used to be the old default), add :locals to pass in those.
- :inline - Renders an inline template similar to how it’s done in the controller.
- :text - Renders the text passed in out.
If no options hash is passed or :update specified, the default is to render a partial and use the second parameter as the locals hash.

