I’ve been striving to learn proper Rails practices and have an
“opinionated” question. I’ve seen stated in many places that the
business logic belongs primarily in the model. How important is that?
I have a case in which I am tracking employee days off. My view will
allow the user to enter the beginning and end date of their vacation,
but I need to store the date of each day off separately. Further, I
need to remove weekends and holidays.
I have a good idea of how to do this in the controller by iterating
through the dates and saving those that qualify. (I could populate a
collection and do the save in one step, I suppose, but I’m not sure
what the advantage would be.)
So, is it okay, by Rails standards, to put this type of logic in the