RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: UnderpantsGnome
Site: http://underpantsgnome.com/
The code from the article is the Rails 3.2+ compliant version of the replacement you supplied. They do the exact same thing but your version wont work in Rails 4.1
The code from the article is the Rails 3.2+ compliant version of the replacement you supplied. They do the exact same thing but your version wont work in Rails 4.1