Last active
March 22, 2018 17:20
-
-
Save rachidcalazans/cc03b751d8c9ba7b72e13f8db908d4fd to your computer and use it in GitHub Desktop.
Example IV Avoiding Nil - Represent special cases as objects
This file contains hidden or 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
| def index | |
| @posts = current_user.posts | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment