|
|
|
|
|
by patio11
4477 days ago
|
|
This feels like it would be the sort of architectural decision which would be well-served by saying "Here is the app motivating this stunning architectural purity. You will note that this app both exists and was more complicated than the 5 Minute Build-A-Blog demo." Otherwise it's "Rails Project Day 1: Scratch-build a stripped-down ORM. Day 59: That might have been a bit more involved than I expected." |
|
Controllers actions are allowed a single line of code
I wonder, why do these controllers exist at all?
Is code like this really useful code? It looks like it was written by a very short perl script. Why is he using rails at all at this point, rather than ditching the framework and using a simpler router which talks directly to his app endpoints? What does this controller add aside from a level of indirection which will never be useful?The lack of an example with code running in production makes it very hard to judge where all this is leading or why you would want to do this.