You'll need to change the version of rails listed in the Gemfile. I don't think "bundle update" modifies that.
gem 'rails', '3.2.10'
Running `bundle update rails` when you've absolutely specified the version number won't do anything. Your Gemfile.lock file (which is the file that bundler uses to determine which gems to require) won't be changed. Instead of absolutely specifying the version of Rails you want to use, considering using the '~>' specifier. My Gemfile at Airtasker looks like: gem 'rails', '~> 3.2.8'
That means that when I run `bundle update rails` it will update the patch version of rails. Our Gemfile.lock has the following entry for rails: rails (3.2.11)
By using the '~>' specifier it means that we can easily update our gems patch versions without worrying about API changes between major and minor versions.You can read: http://gembundler.com/v1.2/gemfile.html to find out more.
So you will want to double-check the specific version that you end up with. If it doesn't work you probably can fix it with `bundle update rails something_else`, unless you have a true conflict in which case you will have to do some spelunking yourself, and perhaps the Rails hotfix should be in place in your app first.
Eg. These will update fine:
gem "rails"
gem "rails", "~> 3.2"
This wont: gem "rails", "= 3.2.10"If your gemfile looks like:
gem 'rails', '3.2.10'
Then `bundle update` does nothing.