Updated rails app to somewhat conform with a working app