Skip to content

Commit 9d9a4bd

Browse files
committed
public methods can be placed after private ones if you want to
[ci skip]
1 parent 0e109c8 commit 9d9a4bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/getting_started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ NOTE: A frequent practice is to place the standard CRUD actions in each
827827
controller in the following order: `index`, `show`, `new`, `edit`, `create`, `update`
828828
and `destroy`. You may use any order you choose, but keep in mind that these
829829
are public methods; as mentioned earlier in this guide, they must be placed
830-
before any private method in the controller in order to work.
830+
before declaring `private` visibility in the controller.
831831

832832
Given that, let's add the `show` action, as follows:
833833

0 commit comments

Comments
 (0)