intermediate rails tut on thoughtbot