Ruby error when running bundle install

When I run rails s in the console, command fails and I get this response: Could not find nokogiri- in any of the sources Run bundle install to install missing gems. First issue here is that nokogiri is not in my Gemfile because I'm not usin...
more »

2016-12-17 22:12 (1) Answers

I have an error with gem devise

I have create a simple project on Ruby on Rails. I have added gem devise in my Gemfile. When I launch the command rails g devise:install I have the output in the error below: /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-
more »

2016-12-11 19:12 (0) Answers

Understanding the tilde operator in Gemfile.lock

I currently have a dependency of the following i18n (~> 0.6, >= 0.6.4) I've been having a read through of the Ruby Gems - Declaring Dependency Guide And I've found out that the '~> 0.6' part means anything between 0.6 and 1.0 - correct me i...
more »

2016-11-08 14:11 (1) Answers

How do I build "gem install json"?

I’m using Rails 4.2.7. I’m trying to build this tutorial —, but getting a strange error, “An error occurred while installing json (1.8.0), and Bundler cannot continue.” So I tried “gem install json...
more »

2016-10-07 18:10 (1) Answers

Ignore Gemfile `source` if source not accessible

We have an internal gem server to store some organisation specific gems. We use it via a source option in Gemfile: source '' do gem 'local-gem' end The internal gem server is only available on the internal network. ...
more »

2016-09-08 11:09 (1) Answers

Why does a Gem provide ~> AND => in RubyGems?

The gem for bcrypt at shows this usage gem 'bcrypt', '~> 3.1', '>= 3.1.11' Why have the two versions of the spermy pessimistic operator ? We normally use just one version for other gems ...
more »

2016-08-30 01:08 (2) Answers

How to specify source in .gemspec file?

I'm building a gem that uses rails-assets-growl gem. This gem can be added to my Gemfile using a different source than '' like this: source '' do gem 'rails-assets-growl' end This works fine in develop...
more »

2016-07-18 21:07 (1) Answers

bundle install fails for custom spree gems

I have a spree app running where I am using number of gems to solve some of my purposes. I am using a gem spree social, spree reviews and a couple more. I had my code and It was working well. But since I have pulled the code, I am getting error like...
more »

2016-06-08 11:06 (1) Answers

groupdate gem not included in Gemfile?

I have gem 'groupdate' in my Gemfile in my Rails project. I run bundle and then open bin/rails c to test the methods out yet I still get the error: [4] pry(main)> users.group_by_day { |u| u.created_at } NoMethodError: undefined method gr...
more »

2016-06-08 08:06 (0) Answers

Where is the "Gemfile" in Ruby?

I often see in documentation on the Internet, "put this in the Gemfile". I don't know where and what this "Gemfile" is. If I install a gem then I have installed it. Who need than a "Gemfile"? Where or what is the Gemfile, and why is it used? ...
more »

2016-05-30 15:05 (3) Answers