ruby on rails 3 - How to use a local gem in console with bundled environment -
i want customize development environment few gems. using bundler rails 3.0.x. have gems in local system , dont want add them gemfile. how can pass bundler , require these gems in console opened using bundle exec ?
i found 1 way it, though it's little hacky.
$ gem install gem_name $ gem gem_name # outputs <full path gem>/lib/gem_name.rb $ rails console > $load_path << "<full path gem>/lib" > require 'gem_name' i'm doing play around different ruby performance gems, although might easier add gemfile, bundle, , revert before push changes.
Comments
Post a Comment