Porting mvc net practice to ruby on rails