rubygems - I added the gem in rails, but it still says gem missing? -


i typed following:

gem install omniauth 

in environment.rb file, have:

config.gem "omniauth" 

however, these errors:

no such file load -- omniauth/core missing these required gems:   omniauth 

i'm confused: rake gems:install , don't error (i don't message back, either). try run script/server , says need rake gems:install!

when remove config.gem "omniauth" environment.rb, this:

c:/ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in `load_missing_constant': unin itialized constant omniauth (nameerror) 

now rails 3 using bundler, need make explicit want access specific gem in app. this, go gemfile (in root directory of project) add line:

gem 'omniauth' 

then run bundle install in project directory, , should go. bundle install makes sure gems , dependencies installed on current system. luck!


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -