by direction of tutorials.railsapps.org