easy to install implementation of railscasts #337