Guest User

Untitled

a guest
Jun 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. - No methods more than 10 lines
  2. - Use database migrations
  3. - after committing a db migration, don't change it. Just add Another migration
  4. - Thin Controllers, Avoid sharing more than one or two instance variables b/w controllers and views
  5. - use REST at all times
  6. - Use one type of http request per action, do not use "request.post?" type methods.
  7. - Avoid using comments. If unclear, Refactor.
  8. - use "h" in views, to escape everything
  9. - do not use abbreviations for variable names
  10. - follow naming conventions don't use variable names like photoalbum use photo_album instead
  11. - make sure to use "2 space" Tab, ( find out or ask for whatever editor / IDE you use )
  12. - use current_user at all times
Add Comment
Please, Sign In to add comment