I have a site, that is using Instagram api and there I'm getting this kind of error, when I'm running "rails c" or "rails server", /vagrant/Documents/RubyProjects/photo/config/initializers/instagram.rb:3:in `': uninitialized constant Instagram (NameError) I suppose it means that rails can't find instagram class or module. But there's a definition of instagram gem in my gemfile gem 'instagram' and in the bundle show command contains * instagram (1.1.1)*. The error is pointing at this:
require "instagram"
Instagram.configure do |config| <- where error points to
config.client_id = "*****************"
config.client_secret = "*************************"
config.access_token = "***************************************"
end
I'm a beginner in all this rails things, so I really don't, what's wrong here. Thx for answering in advance.