Skip to content

Instantly share code, notes, and snippets.

@ryanb
Created July 23, 2011 21:31
Show Gist options
  • Save ryanb/1101906 to your computer and use it in GitHub Desktop.
Save ryanb/1101906 to your computer and use it in GitHub Desktop.
Possible output from a Rails 3.1 upgrade wizard
$ rake rails:update
Generating app/assets directory and content. (same as 3.1 app generator)
Do you want to move all public/stylesheets into app/assets/stylesheets? (recommended) [y]
Moving public/stylesheets into app/assets/stylesheets...
Existing application.css, merging content to the end of app/assets/stylesheets/application.css.
Do you want to move public/javascripts into app/assets/javascripts? (recommended) [y]
Moving public/javascripts into app/assets/javascripts...
It looks like you have jquery.js and rails.js under public/javascripts. You can either switch to the jquery-rails gem or move them to vendor/assets/javascripts.
Do you want to change to use the jquery-rails gem? This will update to the latest version of jQuery. [y]
Adding the jquery-rails gem to the Gemfile. And adding jquery to app/assets/javascripts/application.js.
Removing public/javascripts/jquery.js and rails.js.
--- ALTERNATIVE ---
Do you want to change to use the jquery-rails gem? This will update to the latest version of jQuery. [n]
Moving jquery.js and rails.js into vendor/assets/javascripts.
Creating vendor.js file and adding to application/assets/application.js
---
Conflict with public/javascripts/application.js. Moving to app/assets/javascripts/original_application.js
Do you want to move all public/images into app/assets/images? (recommended) [y]
Done moving public/images into app/assets/images.
Do you want to add CoffeeScript to your Gemfile? (recommended) [y]
Do you want to add Sass to your Gemfile? (recommended) [y]
Done migrating assets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment