How to set up the Twitter gem in my Rails app?

Do the following to add the Twitter gem to your app:

  1. Open your Gemfile and add this: gem 'twitter', '~> 5.16'
  2. Type bundle install at the command line (making sure you’re in the
    directory of your Rails app) and hit enter.

You should see some messages relating to gem installation.

Leave a Comment