Another fix for rails tutorial