fix gems for Rails 4