Hi Gurdipe,

There is a series of RailsCasts that you can watch to get a reasonable idea
of how to approach the upgrade.
http://railscasts.com/episodes?search=upgrading+to+Rails+3


Chirag
http://sumeruonrails.com



On Sat, Apr 7, 2012 at 1:46 AM, Jason Fleetwood-Boldt
<t...@datatravels.com>wrote:

>
>
> Check out
> http://guides.rubyonrails.org/3_0_release_notes.html
>
>
> It is my personal recommendation that you do three things:
>
> 1) Create fresh new Rails 3 app for yourself to "play around in" first. In
> fact, you don't even need to play much, you just need to compare your
> existing config files to the config files in your brand new rails app. *Moving
> the Gem version of Rails doesn't change config settings*, and most of the
> Rails 3 good stuff is in config settings (like the asset pipeline.) When
> they say "it works this way by default in Rails 3" -- they DO NOT mean you
> will get that behavior automatically just by moving the Gem version -- they
> mean that when you do "rails new xyz" the default configuration on your
> newly created app is set that way.
>
> 2) Don't actually upgrade the existing repository. Instead, create a new
> Rails apps and copy files into it (Controllers, Views, Models, etc) one by
> one. This is more or less practical depending on your situation, so take
> this suggestion with a grain of salt. But if you do it this way, you can
> iteratively test as you make changes to confirm that each page and/or
> section of your app works.
>
> 3) Consider upgrading to 3.0.9 *without* the asset pipeline first. Then
> when you have it working in Rails 3.0.9, enable the asset pipeline (in
> application.rb) and move all the way up to Rails 3.2.1 (or whatever the
> latest is)
>
> Beyond that, expect to have to:
>
> - Rewrite your routes.rb file (there's a new syntax)
> - Change instances of <% form_for … %>  to <%= form_for … %>  in views
> - Change "named_scope" to "scope" in models
>
> There's also an official upgrade path, but I don't even recommend that
> either. You'll learn more about Rails 3 and become a better developer if
> you do it piece-by-piece, following suggestion #2 above.
>
>
> -Jason
>
>
>
>
> On Apr 6, 2012, at 3:35 PM, Gurdipe Dosanjh wrote:
>
> Hi All,
>
> Re: Upgrading to Rails 3
>
> I am working on a rails application I need to upgrade to the latest
> version of Ruby and Ruby on Rails.
>
> It is currently using:
>
> Ruby version 1.8.7 and
> Ruby on Rails version 2.3.5
>
> Is there any information, tutorial, guides etc. I can follow
>
> Any help would be greatly appreciated
>
> Kind Regards
>
> Gurdipe
>
> --
> 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/-/-GwOpn34jqsJ.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
>  --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to