|
|
|
|
|
by grey-area
4476 days ago
|
|
My thoughts exactly. On reading: Controllers actions are allowed a single line of code I wonder, why do these controllers exist at all? def show
app_of_things.show_thing(rails_adapter)
end
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. |
|