‘@params’ => ‘Use params[] instead’,
‘@session’ => ‘Use session[] instead’,
‘@flash’ => ‘Use flash[] instead’,
‘@request’ => ‘Use request[] instead’,
‘@env’ => ‘Use env[] instead’,
‘find_all’ => ‘Use find(:all) instead’,
‘find_first’ => ‘Use find(:first) instead’,
‘render_partial’ => ‘Use render :partial instead’,
‘start_form_tag’ => ‘Use form_for instead’,
‘end_form_tag’ => ‘Use form_for instead’,
‘:post => true’ => ‘Use :method => :post instead’
1. Replace all start_form_tag instances with form_tag
2. Replace all end_form_tag instances with </form>
3. Update all your plugins.. many required changes to work with Rail2
4. render_without_layout has been deprecated– Use render :layout => false instead.
5. restful_authentication plugin is broken – Replace redirect_to_url (deprecated) in lib/authenticated_system.rb with to redirect_to.
6. If you’ve got a tagging plugin and your code borks on taggings_count, replace it with taggings.count
7. If you’re using javascript and your code borks on foo[id].attributes.bar, change it to foo[id].bar
8. Replace any built-in pagination with the will_paginate plugin
9. If you reference a specific version of rails in your environment.rb, you’ll want to either update that for Rails 2.0.2 or comment it out (which will make your app use the latest version).
10. Make sure you have added an appropriate line to your environment.rb to take care of the new cookie-based sessions
config.action_controller.session = { :session_key => “_myapp_session”, :secret => “art1323a42342x34njsdf566osbjeqw50051393″ }Try the following to run as a rake task which will help you out in updating!