Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on Rails, LinkedIn:Module error

Has any one come across this error?

NoMethodError (undefined method `new' for LinkedIn:Module)

I think it's related to omniauth and linkedin. Here's my Gemfile:

gem 'omniauth'
gem 'linkedin', :git => "git://github.com/redbeard-tech/linkedin.git", :branch => 'jsapi'

I'm using:

  • ruby 1.8.7 (2010-01-10 patchlevel 249)
  • rails 3.0.5

What might be the reason for it?

like image 470
Anand Kumar Avatar asked May 19 '26 09:05

Anand Kumar


1 Answers

Check what version of omniauth you are using. We recently ran into this and it was from our dev environment having omniauth 0.3.x and the new environment getting the new 1.0 release. On the omniauth github site it says:

OmniAuth 1.0 has several breaking changes from version 0.x. You can set the dependency to ~> 0.3.2 if you do not wish to make the more difficult upgrade. See the wiki for more information.

I suspect you're being bitten by that.

like image 184
Jared Avatar answered May 21 '26 00:05

Jared



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!