Rails4 Tutorial + modifications