4 ms·
I agree, I really like the "services" layer. I used it for years programming with Java/Spring and missed a lot when learning RoR. I think it is no coincidence t
by juliano_q 14y ago
I agree, I really like the "services" layer. I used it for years programming with Java/Spring and missed a lot when learning RoR. I think it is no coincidence that the two RoR real-world projects that I worked had enormous controllers. The service layer is great to orchestrate operations between models and I don´t know a reason for not using it.
- Daniel_Newby 14y agoDoes anything stop you from using a service layer with Rails?
- juliano_q 14y agoNo, but it doesn't seem to be a common practice. Actually on my personal projects the first thing I do is to create a service layer, but sadly the real world projects that I jumped into never had it.
- jacobsteringa 14y agoI believe this gem does something like that, https://github.com/karmajunkie/imperator https://github.com/karmajunkie/imperator