Change app from Rails 4 to Rails 3.2.14