Forum: Ruby on Rails Redundancy in controller? What are your thoughts?

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.
328f0bb678423fcea01ebe3b0edc74e6?d=identicon&s=25 Ben Johnson (benjohnson)
on 2007-03-26 07:28
I am having a tough time coming up with a decision on this:

Is it ok to have redundancy in your controllers and views for the sake
of flexibility? Or should your controllers and views be 100% DRY by
creating private methods in your controllers that accept parameters and
using partials that accepts locals?

I tried being 100% DRY but my private methods are getting very complex
and my partials are getting complex as well, with a bunch of if
statements, etc.

I feel like redundancy in your models is bad, but in your controller and
views it's not so bad because this is the presentation end of your
application which can vary depending on the section of your application.

What do you think?
This topic is locked and can not be replied to.