updated gemfile and rails to 4