How to upgrade a Rails 3.0 app to Rails 3.1? -


I have a Rail 3.0 app (technically 3.0.7), which I want to upgrade to Rail 3.1. What is the best way to do new property pipeline and other fancy new features? Should I use the Rail New generator, then copy from my old app to one new one? What about version control? I already have my old app using Git.

One of your apps was upgraded from 3.0.9 to 3.1, here My view is, your mileage may vary:

Edit Gemfile, Change Rail Gem version

  Mani 'Rail', '3.1.0'  Adds new gems started in 3.1.0  
  Group: Assets Mani 'sass-rails', "~> 3.1.0" Mani' coffee-rail ',' ~ Gt; 3.1.0 "Mani 'Uglfire' and Mani 'jquery-rails'   

Run Bundle Update Rail

Then Rock Rail Run: Update and resolve the conflict.

Move your code / css / javascript / images into the app / property folder, make sure that a < Code> application.js and a application.css file (you want to take a look from the 3.1.0 projects that were created from them again)

Include CSS / In this way your layout will be in the file Zavascript links

  & lt;% = stylesheet_link_tag "Application"%> ;% = javascript_include_tag "application"%>    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -