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

  • Home
  • SEARCH
  • 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 6474853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:38:11+00:00 2026-05-25T06:38:11+00:00

I have a Rails 3.0 app (technically 3.0.7) which I would like to upgrade

  • 0

I have a Rails 3.0 app (technically 3.0.7) which I would like to upgrade to Rails 3.1 to make use of the new asset pipeline and other fancy new features. What is the best approach to doing this? Should I use the rails new generator, then copy everything from my old app over to the new one? What about version control? I already have my old app using Git.

  • 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-05-25T06:38:12+00:00Added an answer on May 25, 2026 at 6:38 am

    Just upgraded one of my apps from 3.0.9 to 3.1.0, here’s my approach, your mileage might vary:

    Edit Gemfile, change Rails gem version

    gem 'rails', '3.1.0'
    

    Also adds new gems introduced in 3.1.0

    group :assets do
      gem 'sass-rails', "~> 3.1.0"
      gem 'coffee-rails', "~> 3.1.0"
      gem 'uglifier'
    end
    gem 'jquery-rails'
    

    run bundle update rails

    Then run rake rails:update and resolve conflicts.

    Move your css/javascript/images etc to app/assets folder, make sure there’s an application.js and an application.css file (you might want to take a look at those two from newly created 3.1.0 projects)

    Include css/javascript links in your layout file like this

    <%= stylesheet_link_tag "application" %>
    <%= javascript_include_tag "application" %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a rails app which makes heavy use of activeresource and httparty to
I am writing a rails app, and I would like to use node.js and
I have rails app with a textarea form like <%= form_for Comment.new, :remote =>
I have rails app which are working perfectly in the local computer. But when
I have rails app which has a list of users. I have different relations
I have a rails app which is already running with some users, users that
I have Rails app, and every once in a while, when I bring new
I have a rails app that uses heavily js (over 1MB total). I'd like
I have a rails app which uses omniauth to authenticate visitors via facebook. When
I have huge Rails app on development right now, which run VERY slow on

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.