| 524 | | # File rendering works just like action rendering except that it takes an absolute path. |
|---|
| 525 | | # The current layout is not applied automatically. |
|---|
| 526 | | # |
|---|
| 527 | | # # Renders the template located in /path/to/some/template.r(html|xml) |
|---|
| 528 | | # render :file => "/path/to/some/template" |
|---|
| 529 | | # |
|---|
| 530 | | # # Renders the same template within the current layout, but with a 404 status code |
|---|
| 531 | | # render :file => "/path/to/some/template", :layout => true, :status => 404 |
|---|
| | 523 | # File rendering works just like action rendering except that it takes a filesystem path. By default, the path |
|---|
| | 524 | # is assumed to be absolute, and the current layout is not applied. |
|---|
| | 525 | # |
|---|
| | 526 | # # Renders the template located at the absolute filesystem path |
|---|
| | 527 | # render :file => "/path/to/some/template.rhtml" |
|---|
| | 528 | # render :file => "c:/path/to/some/template.rhtml" |
|---|
| | 529 | # |
|---|
| | 530 | # # Renders a template within the current layout, and with a 404 status code |
|---|
| | 531 | # render :file => "/path/to/some/template.rhtml", :layout => true, :status => 404 |
|---|
| | 532 | # render :file => "c:/path/to/some/template.rhtml", :layout => true, :status => 404 |
|---|
| | 533 | # |
|---|
| | 534 | # # Renders a template relative to the template root and chooses the proper file extension |
|---|
| | 535 | # render :file => "some/template", :use_full_path => true |
|---|