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

I thought of creating a bef...

321bbdb120165eebbaf37e781d4ec71b Talk

Ruby On Too many for loops

by fnjord.myopenid.com, February 25, 2009 05:49

Just seems like too many st...

321bbdb120165eebbaf37e781d4ec71b Talk
# 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...

321bbdb120165eebbaf37e781d4ec71b Talk
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...

321bbdb120165eebbaf37e781d4ec71b Talk