Note that there are some explanatory texts on larger screens.

plurals
  1. PORails - how do gems relate to doing 'bundle'
    primarykey
    data
    text
    <p>I'm learning Ruby on Rails from <a href="http://ruby.railstutorial.org" rel="nofollow">Michael Hartl's website</a>. I have a Gemfile that looks like this: </p> <pre><code>source 'https://rubygems.org' ruby '2.0.0' #check and remove below if not relevant #ruby-gemset=railstutorial_rails_4_0 # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.0.1' group :development, :test do gem 'sqlite3', '1.3.8' gem 'rspec-rails', '2.13.1' end group :test do gem 'selenium-webdriver', '2.35.1' gem 'capybara', '2.1.0' end . . . group :doc do gem 'sdoc', '0.3.20', require: false end group :production do gem 'pg', '0.15.1' gem 'rails_12factor', '0.0.2' end # Use ActiveModel has_secure_password # gem 'bcrypt-ruby', '~&gt; 3.1.2' # Use unicorn as the app server # gem 'unicorn' # Use Capistrano for deployment # gem 'capistrano', group: :development # Use debugger # gem 'debugger', group: [:development, :test] </code></pre> <p>I have 2 questions:</p> <ol> <li><p>Why is this sequence of commands correct:</p> <p><code>$ bundle install --without production</code> <code>$ bundle update</code> <code>$ bundle install</code></p></li> </ol> <p>Shouldn't it first be <code>bundle update</code> then <code>bundle install --without production</code>. Why call <code>bundle install</code> twice? I think the second call is redundant.</p> <ol> <li><p>If I run <code>bundle install</code>and I see something like: </p> <p>Fetching gem metadata from <a href="https://rubygems.org/" rel="nofollow">https://rubygems.org/</a>......... Fetching gem metadata from <a href="https://rubygems.org/" rel="nofollow">https://rubygems.org/</a>.. Resolving dependencies... Using rake (10.1.0) Using i18n (0.6.5) </p></li> </ol> <p>Where actually are these stuff being downloaded saved? Where are they being installed? On my computer? I never got where they actually go or hide. Maybe in my applications folder? But where exactly?</p> <p>I would appreciate some help.</p> <p>PS: The editor is behaving strangely today. I can't seem to properly wrap code tags around my code.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload