change rails version to 4.1.4 and deleted unused gems from gemfile