Skip to content

Instantly share code, notes, and snippets.

@thatrubylove
Created March 22, 2015 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thatrubylove/56189c9cb2550583b8a8 to your computer and use it in GitHub Desktop.
Save thatrubylove/56189c9cb2550583b8a8 to your computer and use it in GitHub Desktop.
RubyLove Rails Rules
  1. Controller actions will not expose more than one instance variable
  2. Views are used in the context of a controller, they use instance variables
  3. Partials are meant to be sharable (multi controllers) so they should only use local variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment