I\'m learning RoR on Ubuntu 11. Got the following message when I was trying to generate an app. Did I install something incorrectly?
$ rails generate control
The best way to solve this is:
$ gem pristine --all --no-extensions
This will rebuild all gems (excluding those with native extensions) and update their gemspecs. If you don't have any gems with native extensions or you didn't use any custom compile flags on those gems you can also omit the --no-extensions
flag. Otherwise you'll have to build them seperately.
I tried "sudo gem update". After that, I don't see the message "Gem.source_index is deprecated, use Specification..." anymore. Yay!
rails -v = 2.2.2
ruby -v = 1.8.7
This link helps me.
or simply do
gem update --system 1.6.2
Try this:
sudo gem update bundler
This will update bundler to most recent version (currently 1.0.15). This will not generate the warning or at least in my case this was the cause of the warning.
This worked for me: downgrade rubygems:
gem update --system 1.6.2
found this advice at: Gem.source_index is deprecated, use Specification #34