Upgrade to rails 3.1.3

27 views
Skip to first unread message

Linus Pettersson

unread,
Nov 24, 2011, 3:24:17 PM11/24/11
to rubyonra...@googlegroups.com
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

Chirag Singhal

unread,
Nov 24, 2011, 10:35:20 PM11/24/11
to rubyonra...@googlegroups.com
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"

Linus

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/gPGqXIyHy-gJ.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Rameshwar Vyevhare

unread,
Nov 24, 2011, 11:23:55 PM11/24/11
to rubyonra...@googlegroups.com
Thanks.

Colin Law

unread,
Nov 25, 2011, 4:04:37 AM11/25/11
to rubyonra...@googlegroups.com
On 25 November 2011 03:35, Chirag Singhal <chirag....@gmail.com> wrote:
> 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

Chirag Singhal

unread,
Nov 25, 2011, 4:37:27 AM11/25/11
to rubyonra...@googlegroups.com
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.



--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

 
Chirag

Colin Law

unread,
Nov 25, 2011, 4:46:29 AM11/25/11
to rubyonra...@googlegroups.com
On 25 November 2011 09:37, Chirag Singhal <chirag....@gmail.com> wrote:
> On Fri, Nov 25, 2011 at 2:34 PM, Colin Law <cla...@googlemail.com> wrote:
>>
>> On 25 November 2011 03:35, Chirag Singhal <chirag....@gmail.com>
>> wrote:
>> > 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

Chirag Singhal

unread,
Nov 25, 2011, 5:08:06 AM11/25/11
to rubyonra...@googlegroups.com
Yes, I guess there's no harm in running that.

Linus Pettersson

unread,
Nov 25, 2011, 2:33:37 PM11/25/11
to rubyonra...@googlegroups.com
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

Hassan Schroeder

unread,
Nov 25, 2011, 2:50:23 PM11/25/11
to rubyonra...@googlegroups.com
On Fri, Nov 25, 2011 at 11:33 AM, Linus Pettersson
<linus.pe...@gmail.com> wrote:

> Hasn't some other gems changed?

> Are these still the default in 3.1.3?

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` :-)

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,
--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

Reply all
Reply to author
Forward
0 new messages