Rails generator incompatible library
Give this a try.
Run the command: gem pristine --all
And make sure to restart spring with spring stop && spring start
in Gemfile
try move the line gem 'devise'
to below
Do a clean install on your ruby and gems
rvm remove 2.2.3
rvm install 2.2.3
rvm use 2.2.3
gem install bundler
bundle install
The problem was unrelated to devise. I found a similar question here which said to uninstall the gem which has the incompatible library issue, and then re-run bundle install. So I did, and it worked!