ruby on rails application programming sample coding