Based on Railscast. Awesome.