Skip to content

Instantly share code, notes, and snippets.

@jackphelps
Created July 13, 2016 15:17
Show Gist options
  • Save jackphelps/937e102aa2ab45a4dce6efb7974a0c91 to your computer and use it in GitHub Desktop.
Save jackphelps/937e102aa2ab45a4dce6efb7974a0c91 to your computer and use it in GitHub Desktop.
# 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