Ramdon tips for Rails
- MVC as a constraint
- Over do MVC
- Don’t put any code in the view
- Don’t do any DB operation in the controller
- Set Default Values in Methods : Avoid unexpected behaviour.
- Simple Hash as Default Method Parameter : This form allows you to add functionality to methods without breaking existing calls
- Helpers are hard to test, its will turn Rails into PHP