Browse files

Merge pull request #11807 from jetthoughts/11804_actions_are_public_m…


Add description of action in Getting Started Guide [ci skip]
  • Loading branch information...
1 parent 20e0d4d commit 8176006cf0dfcd8a5b953157a8dd4802984e883a @steveklabnik steveklabnik committed with senny Aug 13, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 guides/source/
@@ -307,6 +307,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 8176006

Please sign in to comment.