attempt at ruby on rails