Saurabh Juneja Saurabh Juneja - 2 years ago 122
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:

Answer Source

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"
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download