I’ve created a free 9 day course on Refactoring Ruby on Rails Controllers. It discusses and reviews 9 refactorings that I recently did to ChiliProject’s ProjectsController including: Auditing dead code (or zombie code that looks dead but could come back to life and bite you later) The wrong way to use filters Consolidating your guards …
Tag: refactoring
Refactoring Redmine – Business Update
It’s been awhile since I posted an update on my Refactoring Redmine ebook, so I wanted to post an update you on how it’s been doing. These numbers are the grand totals since Refactoring Redmine as first launched in September 2010. 11,807 visits 9,363 unique visits Visitor to sale conversion rate of 1.0904% 128 copies …
Refactoring Rails Product to Teach Refactoring
I’m thinking about creating a new product that teaches how to refactor Ruby on Rails applications. I want to go deeper into the “how to refactor Rails” than Refactoring Redmine and I’m wondering if there is a better way to do this than a PDF ebook. Could you take a minute and let me know …
Redmine Refactor #144: Convert WikiController to a REST resource
I finally felt comfortable enough to do the final conversion of WikiController to a REST resource. Yesterday’s refactoring of the :id parameter make this a lot easier. Before 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 …
Redmine Refactor #143: Convert WikiController to use :id params
This refactoring is a major change to how Redmine’s WikiController is routed. It’s been using the params[:page] field to track which page in the wiki is being requested but that won’t work with Rails’ resource routing, which uses params[:id]. Since I’ve already refactored Redmine so that params[:project_id] is used instead of params[:id], I am now …