ajax assignment follow railscasts