Hi ROR folks, Can anyone suggest me is there anyway to update rails 2.X application to Rails 3.X or Rails 4.X
You may want to watch this: https://www.youtube.com/watch?v=xi7z-vGNNGw
On Jul 3, 2014, at 10:16 AM, M,Gopi M.gopinath wrote:
> Hi ROR folks,
>
> Can anyone suggest me is there anyway to update rails
> 2.X application to Rails 3.X or Rails 4.X
It depends a whole lot on your app, and how good your tests are already. It's easy (for certain definitions of easy), as the joke goes.
Walter
>
>
> Best Regards,
>
> Gopinath M
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPDEixL5sS8vC6%3Dv8p37a0JgRRAZN_f_ubMwphEQrm3n3HEx2g%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/75DE1B4E-F4D7-41CD-929B-B9516E1633C0%40wdstudio.com.
On 2014-Jul-3, at 11:25 , Jason Fleetwood-Boldt <te...@datatravels.com> wrote:As was suggested to you by other posters, please read the upgrade guide carefully (here is the official one http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html)it is recommended that you have very good test coverage before you begin.I suggest you use a tool like simple-cov to make sure all your lines of code are tested before you begin, as well I'd recommend integration coverage for every major end-user "happy path" through your app.When you are sure you have complete test coverage, change the version in the Gemfile and then run "bundle update rails"On Jul 3, 2014, at 10:28 AM, M,Gopi M.gopinath <gopi1...@gmail.com> wrote:Hi,Seems I need to say this first, The website which I have Know is 8 Years old website, Developed in Ruby 1.8.6 and Rails 2.3.6, and its as 220 tables in it and lot of controllers and views. Is there a way to update this to current version of rails and ruby.The short answer is yes, but it is certainly not easy, nor can you make a single leap.Simple-cov will not help you yet as it requires ruby 1.9.3 or better. (It's been so long that I can't even remember if there was a similar tool that worked with ruby 1.8.6.)You may find it simpler to write a new app from scratch, importing (by the time-honored cut-and-paste method) the important bits of business logic.However, if you want to proceed with an upgrade, this is roughly what you'd need to do:• update to rails-2.3.18There's really no reason not to and PLENTY of good reasons that you should have done this already.2.3.9 (2010-09-04) was the version that first gave deprecation warnings for the upgrade to rails-3.02.3.18 (2013-03-18) was the last releast in the 2.3 line and contains fixes for at least 10 vulnerabilities (some of them quite serious!)• get all your tests to pass (if you don't *have* tests, you'd better have faith)• address all the deprecation warnings• don't upgrade ruby yetBut you might have to upgrade to ruby-1.8.7 as rails-3.0 doesn't officially support 1.8.6)
• upgrade to rails-3.0.0 (perhaps even directly to rails-3.0.20)• get all your tests to pass• upgrade to ruby-1.9.2 (or perhaps even ruby-1.9.3)• get all your tests to pass• upgrade to rails-3.1.12 (last of the rails-3.1 line)This might not strictly be required, but 3.1 introduced the Asset Pipeline and also made jQuery the default JavaScript framework.If you have much use of Prototype or Scriptaculous in your application, it would probably be a good idea to convert that to jQuery (and get https://github.com/rails/jquery-ujs)• get all your tests to pass• upgrade to rails-3.2.19• get all your tests to pass• upgrade to ruby-2.1.2 (there's probably no reason to just use 2.0 at this point)• get all your tests to pass• upgrade to rails-4.0.8• get all your tests to pass• upgrade to rails-4.1.4• cope with the new secrets.yml file• get all your tests to pass• take a vacationSeriously, there's a lot to do if you really want to go the upgrade route. I haven't even mentioned any of the issues that you're almost certain to encounter with gems that cease to function with newer versions of Rails or even newer Rubies. I'd recommend that you very seriously consider "refreshing" the application as a simpler way to bring the application onto a current, supported RoR stack.-Rob
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/F60098D9-F540-4976-A917-DBD8E47D7F3E%40agileconsultingllc.com.
Simple-cov will not help you yet as it requires ruby 1.9.3 or better. (It's been so long that I can't even remember if there was a similar tool that worked with ruby 1.8.6.)