Saurabh Juneja Saurabh Juneja - 6 months ago 11x
Ruby Question

How to create a Gemfile?

How do I create a Gemfile? I am trying to follow a tutorial (RSpec Tutorial) that says what is below, and I am not able to do it.

Here's a basic Gemfile to start with.

source ''

gem "rspec"

Rspec tutorial link:


The Gemfile is just a text file within your project which contains a list of gems for use in your application.

If you do not have one in your application, you can create the file using an editor of your choice, saving it as Gemfile (with no extension), and in your example, containing:

source ''

gem "rspec"