method

add_source

rails latest stable - Class: Rails::Generators::Actions
add_source(source, options = {}, &block)
public

Add the given source to Gemfile

If block is given, gem entries in block are wrapped into the source group.

add_source "http://gems.github.com/"

add_source "http://gems.github.com/" do
  gem "rspec-rails"
end