first attempt as a rails 4 app