Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Problems with rails 4.1 #95

Closed
grzesir opened this Issue · 5 comments

6 participants

@grzesir

Getting this error:

Faraday::Builder is now Faraday::RackBuilder.
/Users/rgrzesik/Documents/Rails_Projects/SMI/config/application.rb:50:in `<class:Application>': undefined method `configure' for Instagram:Module (NoMethodError)
    from /Users/rgrzesik/Documents/Rails_Projects/SMI/config/application.rb:10:in `<module:SparkMyInterest>'
    from /Users/rgrzesik/Documents/Rails_Projects/SMI/config/application.rb:9:in `<top (required)>'
    from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.0.beta1/lib/rails/commands/commands_tasks.rb:79:in `require'
    from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.0.beta1/lib/rails/commands/commands_tasks.rb:79:in `block in server'
    from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.0.beta1/lib/rails/commands/commands_tasks.rb:76:in `tap'
    from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.0.beta1/lib/rails/commands/commands_tasks.rb:76:in `server'
    from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.0.beta1/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
    from /Users/rgrzesik/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.0.beta1/lib/rails/commands.rb:17:in `<top (required)>'
    from /Users/rgrzesik/Documents/Rails_Projects/SMI/bin/rails:4:in `require'
    from /Users/rgrzesik/Documents/Rails_Projects/SMI/bin/rails:4:in `<top (required)>'
    from -e:1:in `load'
    from -e:1:in `<main>'
@imkmf

@grzesir, noticed that you had an in-progress fork of this gem to fix this. Are you planning on opening a PR?

@abitdodgy

@imkmf fork your own and change the Faraday dependency in the gemspec file:

s.add_runtime_dependency('faraday', '>= 0.7.4', '<= 0.9.0')

Then source the gem from your form.

@stevehanson

I'm getting a similar error on Rails 4.0.3 when trying to use this gem. I'm pretty new to Rails and just trying to get it to work, so this may just be a user error. I have the gem installed via my gemfile gem 'instagram' and a bundle install:

NoMethodError (undefined method `configure' for Instagram:Module):
  app/controllers/home_controller.rb:18:in `index'


Rendered /Users/stevehanson/.rvm/gems/ruby-2.0.0-p195/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms)
Rendered /Users/stevehanson/.rvm/gems/ruby-2.0.0-p195/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
Rendered /Users/stevehanson/.rvm/gems/ruby-2.0.0-p195/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
Rendered /Users/stevehanson/.rvm/gems/ruby-2.0.0-p195/gems/actionpack-4.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (15.2ms)
@romainbutteaud

@stevehanson, I'm using Rails 4.0.3 also and it works great. hmm, what gem version are you using for instagram and faraday

@stevehanson

Yup, that was the issue. It was using v 0.3.2 of the gem for some reason. I specified the latest version in my gemfile and all is now well. Thanks for the help!

@heatonjb heatonjb closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.