I added a gem to the rails, but does it still say that the gem is missing?

I typed the following:

gem install omniauth

In my file environment.rb, I also have:

config.gem "omniauth"

However, I get the following errors:

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

I am confused: I make a rake: I install and do not receive an error (I also do not receive a message). But then I try to run script / server, and it says that I need to do rake gke: install!

When I remove config.gem "omniauth" from environment.rb, I get the following:

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)
+5
source share
5 answers

, Rails 3 bundler, , . Gemfile ( ), :

gem 'omniauth'

bundle install , . bundle install , . !

+3

:

" " , omniauth. "gem env" , , .

, .

+1

. familliar oauth , , :

rake gems:install

. , .

-,

require 'omniauth'

require 'omniauth/core'

? ? , .

+1

. , Rubygems.
, , rvm.
ruby, Rubygems.
, .
.

+1

Rails 2.3. bundler, .

0
source

All Articles