This tutorial for using rails 4