Re:On logic in a Rails app
by sakopov on Monday December 24, 2012 @04:28PM
(#4964152)
It's a pretty good practice in MVC. I don't work with Rails, but in ASP.NET MVC, i put controller logic behind IBusinessTask generic interface which defines a type for input and output of its single `Execute` method. Any implementation of this interface would call the Business tier to perform its task. These implementations are then injected into controller via property or constructor injection.
[ Parent
| on HN ]
There are no comments on this comment yet.