diff options
author | Paul Nikitochkin <paul.nikitochkin@gmail.com> | 2013-08-08 14:12:23 +0300 |
---|---|---|
committer | Paul Nikitochkin <paul.nikitochkin@gmail.com> | 2013-08-13 19:55:48 +0300 |
commit | 0dd76e1900b372dce0268087dbe01b9e3f5e7463 (patch) | |
tree | e15ed074d0061ef984e56da54e4a1f937d8a81c2 /guides | |
parent | d126a081ed840340dff5c6299d01d42aaaf32608 (diff) | |
download | rails-0dd76e1900b372dce0268087dbe01b9e3f5e7463.tar.gz rails-0dd76e1900b372dce0268087dbe01b9e3f5e7463.tar.bz2 rails-0dd76e1900b372dce0268087dbe01b9e3f5e7463.zip |
#11804: Add description of action in Getting Started Guide
[ci skip]
Closes #11804
Diffstat (limited to 'guides')
-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) |