News for hackers. Stuff that matters.
Re:Out Of Controller by dan_manges on Saturday October 22, 2011 @11:17PM (#3145084)
That is probably how you would do it in this case, but in more complex scenarios, a simple association wouldn't be sufficient. In those cases, putting the code into a service instead of the controller will make the code easier to test and reuse.
Re:Out Of Controller by rhizome on Saturday October 22, 2011 @11:41PM (#3145119)
What's an example that exceeds the functionality of associations?
Re:Out Of Controller by tptacek on Sunday October 23, 2011 @12:24AM (#3145202)
You wouldn't put the code in the controllers; you'd extend the association proxy.