Forum: Ruby on Rails Controllers, refactoring, routes, filters...

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Eric N. (Guest)
on 2006-06-07 03:16
I was wondering if anyone had any advice/experience with when you
refactor controllers.  Because the controllers are tied to the URL via
the routes, it makes refactorings a little more complicated than they
should be in some cases, especially if you don't want the URLs to

Of course the various filters with :only/except provide an additional
flex point to use before a refactoring is needed.  However, I find that
excessive use of filters, especially with "long" (more than 2) special
cases included in only/except starts to smell.  Perhaps that's only
because I'm still getting used to Rails idioms though.

I've read through the wiki and multiple blogs without seeing any
discussion on this; if I overlooked somewhere, please let me know.
This topic is locked and can not be replied to.