Upgrade to rails 3.1.3

Hi!

The app that I’m developing is based on Rails 3.1.1. Now 3.1.3 has been released. I’m a bit new to rails so I’m not sure how to safely do the upgrade.

  • How do I upgrade my app from Rails 3.1.1 to 3.1.3?

Regards

Linus

3.1.1 to 3.1.3 is a very small change. So, all you have to do is update your Gemfile.

Open up Gemfile, and change the version for rails from 3.1.1. to 3.1.3

and then go to your project folder and run “bundle install”

Chirag
http://sumeruonrails.com

Thanks.

Should one do rake rails:update also, just in case any scripts have
changed? Or is that no longer required under rails 3?

Colin

3.1.1 to 3.1.3 is a very small change. So, all you have to do is update your

Gemfile.

Open up Gemfile, and change the version for rails from 3.1.1. to 3.1.3

and then go to your project folder and run “bundle install”

Should one do rake rails:update also, just in case any scripts have

changed? Or is that no longer required under rails 3?

Colin

This is a tiny version upgrade and to the best of my knowledge there aren’t any script changes and hence it isn’t required to run that task.

Chirag
http://sumeruonrails.com

You received this message because you are subscribed to the Google Groups “Ruby on Rails: Talk” group.

To post to this group, send email to rubyonrails-talk@googlegroups.com.

To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Chirag
http://sumeruonrails.com

Is it not better just to run it anyway? It is easier to run it than
it is to try and work out whether it is necessary to run it.

Colin

3.1.1 to 3.1.3 is a very small change. So, all you have to do is update

your

Gemfile.

Open up Gemfile, and change the version for rails from 3.1.1. to 3.1.3

and then go to your project folder and run “bundle install”

Should one do rake rails:update also, just in case any scripts have

changed? Or is that no longer required under rails 3?

Colin

This is a tiny version upgrade and to the best of my knowledge there aren’t

any script changes and hence it isn’t required to run that task.

Is it not better just to run it anyway? It is easier to run it than

it is to try and work out whether it is necessary to run it.

Colin

Yes, I guess there’s no harm in running that.

Ok, thank you guys.

Hasn’t some other gems changed? Like some of these:

gem ‘sass-rails’, ‘~> 3.1.4’
gem ‘coffee-rails’, ‘~> 3.1.1’
gem ‘uglifier’, ‘>= 1.0.3’

Are these still the default in 3.1.3?

Regards

Linus

Easiest way to find out is to create a dummy project using 3.1.3 and
see what gets installed when you run `bundle install` :slight_smile:

Alternatively, you can run `bundle update` on your existing 3.1.1 app,
edit the Gemfile to specify rails 3.1.3 and run `bundle update` again to
see what changes...

FWIW,