Created
July 13, 2016 15:17
-
-
Save jackphelps/937e102aa2ab45a4dce6efb7974a0c91 to your computer and use it in GitHub Desktop.
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
# Rails Controller Style Guide | |
## Table of Contents | |
1. [Authorizing Actions](#authorizing-actions) | |
1. [Action Patterns](#action-patterns) | |
1. [Request Formats](#request-formats) | |
1. [Response Codes](#response-codes) | |
## Authorizing Actions | |
Do stuff | |
Good: | |
``` | |
code | |
``` | |
Bad: | |
``` | |
code | |
``` | |
#### Edge Cases: | |
*[stuff]* | |
## Action Patterns | |
Do stuff | |
Good: | |
``` | |
code | |
``` | |
Bad: | |
``` | |
code | |
``` | |
#### Edge Cases: | |
*[stuff]* | |
## Request Formats | |
Do stuff | |
Good: | |
``` | |
code | |
``` | |
Bad: | |
``` | |
code | |
``` | |
#### Edge Cases: | |
*[stuff]* | |
## Response Codes | |
Do stuff | |
Good: | |
``` | |
code | |
``` | |
Bad: | |
``` | |
code | |
``` | |
#### Edge Cases: | |
*[stuff]* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment