Ruby on Rails Basics
Sometimes, it’s worth stating the basics for all to see:
Follow the Model-View-Controller paradigm. In particular, your views house your user-interface, your models handle the application and your controllers mediate between the two. Controllers do not contain rules, conditionals dealing with business conditions, queries looking for objects related to the one in question. All those things [...]