There's no documentation for this item.
| Public Methods |
| catch_content |
catch_content catches the thrown content from another template So
when you throw_content(:foo) {…} you can catch_content :foo in
another view or the layout.
|
| included |
|
| partial |
This is merb’s partial render method. You name your partials
_partialname.format.* , and then call it like partial(:partialname). If
there is no ’/’ character in the argument passed in it will
look for the partial in the view directory that corresponds to the current
controller name. If you pass a string with a path in it you can render
partials in other view directories. So if you create a views/shared
directory then you can call partials that live there like
partial(‘shared/foo’)
|
| render |
Universal render method. Template handlers are registered by template
extension. So you can use the same render method for any kind of template
that implements an adapter module.
|
| render_inline |
|
| render_js |
does a render with no layout. Also sets the content type header to
text/javascript. Use this when you want to render a template with .jerb
extension.
|
| render_no_layout |
|
| render_nothing |
renders nothing but sets the status, defaults to 200. does send one ’
’ space char, this is for safari and flash uploaders to work.
|
| set_response_headers |
|
| set_status |
Sets the response’s status to the specified value. Use either an
integer (200, 201, 302, etc.), or a Symbol as defined in
Merb::ControllerExceptions::RESPONSE_CODES, such as :not_found, :created or
:see_other.
|
<code/>and<pre/>for code samples.