Creating a rails api example following the codeschool survinging apis in rails