Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9198691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:20:45+00:00 2026-06-17T22:20:45+00:00

I’ve inherited an old project from another dev which runs on Ruby 1.8 and

  • 0

I’ve inherited an old project from another dev which runs on Ruby 1.8 and uses Rails 2. I’m very new to Ruby and Rails project so I wanted to get advice about upgrading such types of project. One major problem with this project is that it has not test coverage. No unit tests at all. Here is some project stats:

$ cloc .

http://cloc.sourceforge.net v 1.56  T=3.0 s (149.3 files/s, 15714.0 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Ruby                           379           3106           1476          15246
Javascript                      18           2981           2369          11008
CSS                             16            690           1208           7156
HTML                            21            324             69           1039
YAML                            13             46            164            236
Bourne Shell                     1              2              5             17
-------------------------------------------------------------------------------
SUM:                           448           7149           5291          34702
-------------------------------------------------------------------------------

My plan is to start a new Rails project and write tests see theme fail and then bit by bit bring in old code, update the parts that need updating and go forward.

Is this as daunting as I’ve been told?
Is the above approach realistic?
What are some pitfalls I should look out for?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:20:47+00:00Added an answer on June 17, 2026 at 10:20 pm

    I have done this myself, recently; I migrated a Rails 2.3 project through Rails 3.0 and 3.1 before ending up in 3.2. It was a bit daunting, but my observations:

    1. I started off trying to create a new project, like you suggest – but I quickly decided against it, and went back to just updating the existing project.
    2. I found the RailsCasts on migrating to Rails 3 to be extremely useful. The first one is here: http://railscasts.com/episodes/225-upgrading-to-rails-3-part-1
    3. If you’re going to be writing tests anyways (which is ABSOLUTELY the right thing to do), I found it easiest to start this AFTER upgrading to 3.0. There were several issues around compatible versions of testing gems, as I recall, between 2.3 and 3.0. My favourite testing environment involves RSpec, Cucumber, and Guard. This RailsCast is awesome for setting up testing: http://railscasts.com/episodes/275-how-i-test
    4. Version control is your friend. I made a git branch for each major point release that I worked through. That way, when I borked something badly, I could easily scrap the branch and try again.

    The long and short of it – it’s doable, but it’ll take some time to get it right. Starting over with a “fresh” project, in my case at least, turned out not to be necessary or helpful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a text area in my form which accepts all possible characters from
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am confused How to use looping for Json response Array in another Array.
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I want use html5's new tag to play a wav file (currently only supported
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.