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...
2 parents c2f0ae7 + 0dd76e1 commit 4934f19a7812b08a369c775c724410057daeb151 @steveklabnik steveklabnik committed Aug 13, 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 4934f19

Please sign in to comment.