update app to use rails 4 and ruby 2