mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Some fixes in docs [ci skip]
Update a link to point to right section in api docs Fix a typo
This commit is contained in:
parent
0061c5e1ef
commit
ce46f20d13
2 changed files with 2 additions and 2 deletions
|
@ -269,7 +269,7 @@ Rails will render the `_product_ruler` partial (with no data passed to it) betwe
|
|||
|
||||
### Layouts
|
||||
|
||||
Layouts can be used to render a common view template around the results of Rails controller actions. Typically, every Rails has a couple of overall layouts that most pages are rendered within. For example, a site might have a layout for a logged in user, and a layout for the marketing or sales side of the site. The logged in user layout might include top-level navigation that should be present across many controller actions. The sales layout for a SaaS app might include top-level navigation for things like "Pricing" and "Contact Us." You would expect each layout to have a different look and feel. You can read more details about Layouts in the [Layouts and Rendering in Rails](layouts_and_rendering.html) guide.
|
||||
Layouts can be used to render a common view template around the results of Rails controller actions. Typically, every Rails application has a couple of overall layouts that most pages are rendered within. For example, a site might have a layout for a logged in user, and a layout for the marketing or sales side of the site. The logged in user layout might include top-level navigation that should be present across many controller actions. The sales layout for a SaaS app might include top-level navigation for things like "Pricing" and "Contact Us." You would expect each layout to have a different look and feel. You can read more details about Layouts in the [Layouts and Rendering in Rails](layouts_and_rendering.html) guide.
|
||||
|
||||
Partial Layouts
|
||||
---------------
|
||||
|
|
|
@ -116,7 +116,7 @@ to Active Record instances:
|
|||
locking](http://api.rubyonrails.org/classes/ActiveRecord/Locking.html) to
|
||||
a model.
|
||||
* `type` - Specifies that the model uses [Single Table
|
||||
Inheritance](http://api.rubyonrails.org/classes/ActiveRecord/Base.html).
|
||||
Inheritance](http://api.rubyonrails.org/classes/ActiveRecord/Base.html#label-Single+table+inheritance).
|
||||
* `(association_name)_type` - Stores the type for
|
||||
[polymorphic associations](association_basics.html#polymorphic-associations).
|
||||
* `(table_name)_count` - Used to cache the number of belonging objects on
|
||||
|
|
Loading…
Reference in a new issue