-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
You have seven default actions, and in every one of them you do the following: | ||
##Notes | ||
|
||
* Set an instance variable to be used later in the rendered action or template | ||
* Handle the response using the respond_to method to either do a render or redirect_to another path, depending on the behavior you want to achieve | ||
* When rendering a partial or temp from another controller use: `<%= render :file => 'controllerName/tempName' %>` | ||
* You have seven default actions, and in every one of them you do the following: | ||
* Set an instance variable to be used later in the rendered action or template | ||
* Handle the response using the respond_to method to either do a render or redirect_to another path, depending on the behavior you want to achieve | ||
* When rendering a partial or temp from another controller use: `<%= render :file => 'controllerName/tempName' %>` | ||
* `new` and `edit` are _actually_ not RESTFUL | ||
* these end up being different ways to represent the `show` action | ||
* this can be thought of while building an API, why build new over create | ||
* the big five(`index`, `show`, `create`, `update`, `destroy`) are what matter |