diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2013-08-13 10:49:14 -0700 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2013-08-13 10:49:14 -0700 |
commit | 4934f19a7812b08a369c775c724410057daeb151 (patch) | |
tree | 183840856ccb2b3c9e7b4f9807e38ba0277d7667 | |
parent | c2f0ae737e845776ee8c12e23455334bf46784a1 (diff) | |
parent | 0dd76e1900b372dce0268087dbe01b9e3f5e7463 (diff) | |
download | rails-4934f19a7812b08a369c775c724410057daeb151.tar.gz rails-4934f19a7812b08a369c775c724410057daeb151.tar.bz2 rails-4934f19a7812b08a369c775c724410057daeb151.zip |
Merge pull request #11807 from jetthoughts/11804_actions_are_public_methods
Add description of action in Getting Started Guide [ci skip]
-rw-r--r-- | guides/source/getting_started.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index 784a61adc1..025e073d55 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -310,6 +310,10 @@ end A controller is simply a class that is defined to inherit from `ApplicationController`. It's inside this class that you'll define methods that will become the actions for this controller. These actions will perform CRUD operations on the posts within our system. +NOTE: There are `public`, `private` and `protected` methods in `Ruby` +(for more details you can check on [Programming Ruby](http://www.ruby-doc.org/docs/ProgrammingRuby/)). +But only `public` methods can be actions for controllers. + If you refresh <http://localhost:3000/posts/new> now, you'll get a new error: ![Unknown action new for PostsController!](images/getting_started/unknown_action_new_for_posts.png) |