Skip to content

Instantly share code, notes, and snippets.

@mindscratch
Created August 9, 2011 09:43
Show Gist options
  • Select an option

  • Save mindscratch/1133677 to your computer and use it in GitHub Desktop.

Select an option

Save mindscratch/1133677 to your computer and use it in GitHub Desktop.
Reference other ruby or rails engine project from Gemfile
# include version of rails
gem "rails", "3.0.9"
require "rails"
if Rails.env == 'development'
gem "my-other-project", "../my-other-project"
else
gem "my-other-project", "~> 0.0.1"
end
@mindscratch
Copy link
Author

This is how I work on a Rails project but reference another project that's also in development, that I have checked out.

This was my "workaround" when using Bundler 1.0.15 (I believe bundler will have better support for this type of setup in a future release).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment