mirror of https://github.com/rails/rails
Merge pull request #46024 from sreeram-venkitesh/fix-action-controller-link [ci-skip]
Fixed ActionController link in `Layouts and Rendering in Rails` docs
This commit is contained in:
commit
0e22ff24ec
|
@ -105,7 +105,7 @@ NOTE: The actual rendering is done by nested classes of the module [`ActionView:
|
|||
|
||||
### Using `render`
|
||||
|
||||
In most cases, the [`ActionController::Base#render`][controller.render] method does the heavy lifting of rendering your application's content for use by a browser. There are a variety of ways to customize the behavior of `render`. You can render the default view for a Rails template, or a specific template, or a file, or inline code, or nothing at all. You can render text, JSON, or XML. You can specify the content type or HTTP status of the rendered response as well.
|
||||
In most cases, the [`AbstractController::Rendering#render`][controller.render] method does the heavy lifting of rendering your application's content for use by a browser. There are a variety of ways to customize the behavior of `render`. You can render the default view for a Rails template, or a specific template, or a file, or inline code, or nothing at all. You can render text, JSON, or XML. You can specify the content type or HTTP status of the rendered response as well.
|
||||
|
||||
TIP: If you want to see the exact results of a call to `render` without needing to inspect it in a browser, you can call `render_to_string`. This method takes exactly the same options as `render`, but it returns a string instead of sending a response back to the browser.
|
||||
|
||||
|
|
Loading…
Reference in New Issue