Ruby on rails assignment