Currently, I already have a large controller, which is getting bigger. I was wondering what would be the best way to reduce my controllers. I'm not necessarily looking for the easiest way, but a safe and effective way. I have been developing with Rails for a while, but Im still not familiar with how the "subclassification" works, and I'm not even sure that it is supposed to be used that way. I was thinking maybe something like this?
class SomeController < ApplicationController end class MoreFunctionsController < SomeController end
Currently unverified - I'm still working on it right now, but I hope this can give you an idea of ββwhich direction I'm trying to go. I also don't know what the routing will look like for this. What would be the best way to βsmashβ a large controller?
ruby-on-rails
goo
source share