diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2015-12-17 12:16:07 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2015-12-17 12:16:07 +0100 |
commit | 1bfce3f29d958a14ca1502d3d36a9a2bc1de3734 (patch) | |
tree | c170df3f5d2886a669ad757af931a8bb515b0202 /guides/source/routing.md | |
parent | 48f5cecdb03f697a710169ccef1885fcaca70788 (diff) | |
parent | 4f813a85d8919a83dd6fc019614f6aea7af7d5ae (diff) | |
download | rails-1bfce3f29d958a14ca1502d3d36a9a2bc1de3734.tar.gz rails-1bfce3f29d958a14ca1502d3d36a9a2bc1de3734.tar.bz2 rails-1bfce3f29d958a14ca1502d3d36a9a2bc1de3734.zip |
Merge pull request #22626 from gsamokovarov/appliation-record-documentation-fixes
Appliation record documentation fixes
Diffstat (limited to 'guides/source/routing.md')
-rw-r--r-- | guides/source/routing.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md index fc756d00b3..2b1254f7a0 100644 --- a/guides/source/routing.md +++ b/guides/source/routing.md @@ -252,11 +252,11 @@ TIP: _If you need to use a different controller namespace inside a `namespace` b It's common to have resources that are logically children of other resources. For example, suppose your application includes these models: ```ruby -class Magazine < ActiveRecord::Base +class Magazine < ApplicationRecord has_many :ads end -class Ad < ActiveRecord::Base +class Ad < ApplicationRecord belongs_to :magazine end ``` @@ -1099,7 +1099,7 @@ You can override `ActiveRecord::Base#to_param` of a related model to construct a URL: ```ruby -class Video < ActiveRecord::Base +class Video < ApplicationRecord def to_param identifier end |