ruby on rails sample code