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