Follow Along as I Stumble on the Path to Learning RoR

Where to put code?

It was confusing for me figuring out where to put logic.  As it turns out, I had way too much code in my controllers and views – this should have been in my models and helpers.

This is a great post:

http://weblog.jamisbuck.org/2006/10/18/skinny-controller-fat-model

 

Also, view:

http://stackoverflow.com/questions/60658/rails-model-view-controller-and-helper-what-goes-where

Advertisements

Comments are closed.