def show
if params[:course_id] && permitted_to?(:browse, :videos)
...
Ruby Need to DRY this if-else up
by fnjord.myopenid.com,
March 25, 2009 17:43,
3 refactorings, tagged with rails, ruby, dry, conditions, if else
Ruby On Too many for loops
by fnjord.myopenid.com,
February 25, 2009 05:49
Just seems like too many st...
# users controller ...
Ruby Too many for loops
by fnjord.myopenid.com,
February 25, 2009 00:23,
6 refactorings, tagged with rails, ruby, loops, for loop
I am trying to find a reaso...
def create
@announcement = current_account.announcements.build(params[:announcement])
...
Ruby Re-Refactor Mailer Conditions
by fnjord.myopenid.com,
February 13, 2009 17:44,
2 refactorings, tagged with rails, ruby, conditions, controller, mailer
This is just a mess. It wou...
I thought of creating a bef...