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