fixed copy and paste from railscasts recipies