add gem to ruby file code example Example: rails add gem to gemfile # In your terminal bundle add your_gem_name