Move rails gem to Gemfile