diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-12-25 02:19:35 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-12-25 02:19:35 +0900 |
commit | 9d9a4bd7cf75d378109d043fd1f466dc27416223 (patch) | |
tree | dc43a3ef2bb49530240ab014becfcc17d464ef67 | |
parent | 0e109c871033ccff396709a76ec3af05257f4560 (diff) | |
download | rails-9d9a4bd7cf75d378109d043fd1f466dc27416223.tar.gz rails-9d9a4bd7cf75d378109d043fd1f466dc27416223.tar.bz2 rails-9d9a4bd7cf75d378109d043fd1f466dc27416223.zip |
public methods can be placed after private ones if you want to
[ci skip]
-rw-r--r-- | guides/source/getting_started.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index 0bafa0b7d8..8a451ab793 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -827,7 +827,7 @@ NOTE: A frequent practice is to place the standard CRUD actions in each controller in the following order: `index`, `show`, `new`, `edit`, `create`, `update` and `destroy`. You may use any order you choose, but keep in mind that these are public methods; as mentioned earlier in this guide, they must be placed -before any private method in the controller in order to work. +before declaring `private` visibility in the controller. Given that, let's add the `show` action, as follows: |