Browse files

#11804: Add description of action in Getting Started Guide

[ci skip]

Closes #11804
  • Loading branch information...
1 parent d126a08 commit 0dd76e1900b372dce0268087dbe01b9e3f5e7463 @pftg pftg committed Aug 8, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 guides/source/
@@ -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](
+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)

0 comments on commit 0dd76e1

Please sign in to comment.