From 0dd76e1900b372dce0268087dbe01b9e3f5e7463 Mon Sep 17 00:00:00 2001 From: Paul Nikitochkin Date: Thu, 8 Aug 2013 14:12:23 +0300 Subject: #11804: Add description of action in Getting Started Guide [ci skip] Closes #11804 --- guides/source/getting_started.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'guides') 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 now, you'll get a new error: ![Unknown action new for PostsController!](images/getting_started/unknown_action_new_for_posts.png) -- cgit v1.2.3