second attempt at rails app