Skip to content

Instantly share code, notes, and snippets.

@pcmantz
Created April 16, 2013 20:39
Show Gist options
  • Save pcmantz/5399463 to your computer and use it in GitHub Desktop.
Save pcmantz/5399463 to your computer and use it in GitHub Desktop.
(in /home/devuser/dev/vamp-ui)
Old Rails generator API
A plugin in the app is using the old generator API (a new one may be available at http://github.com/trydionel/rails3-generators).
More information: http://blog.plataformatec.com.br/2010/01/discovering-rails-3-generators/
The culprits:
- vendor/plugins/acts_as_taggable_redux/generators/
- vendor/plugins/acts_as_taggable_redux/generators/acts_as_taggable_tables/
- vendor/plugins/acts_as_taggable_redux/generators/acts_as_taggable_stylesheet/
- vendor/plugins/acts_as_authenticated/generators/
- vendor/plugins/acts_as_authenticated/generators/authenticated/
- vendor/plugins/acts_as_authenticated/generators/authenticated_mailer/
- vendor/plugins/engines/generators/
- vendor/plugins/engines/generators/plugin_migration/
- vendor/plugins/acts_as_shareable/generators/
- vendor/plugins/s3-swf-upload-plugin/generators/
- vendor/plugins/s3-swf-upload-plugin/generators/s3_swf_upload/
- vendor/plugins/action-mailer-queue/generators/
- vendor/plugins/action-mailer-queue/generators/action_mailer_queue/
- vendor/plugins/acts_as_commentable/generators/
- vendor/plugins/acts_as_commentable/generators/comment/
Updated syntax for before_validation_on_* methods
before_validation_on_* methods have been changed to before_validation(:on => :create/:update) { ... }
More information: https://rails.lighthouseapp.com/projects/8994/tickets/4699-before_validation_on_create-and-before_validation_on_update-doesnt-exist
The culprits:
- app/models/vm_user_info.rb
- app/models/user.rb
Old router API
The router API has totally changed.
More information: http://yehudakatz.com/2009/12/26/the-rails-3-router-rack-it-up/
The culprits:
- config/routes.rb
Deprecated test_help path
You now must require 'rails/test_help' not just 'test_help'.
More information: http://weblog.rubyonrails.org/2009/9/1/gem-packaging-best-practices
The culprits:
- test/test_helper.rb
- test/#test_helper.rb#
Deprecated filter_parameter_logging calls
The list of filtered parameters are now stored in /config/application.rb. For example: config.filter_parameters += [:password]
More information: http://asciicasts.com/episodes/224-controllers-in-rails-3
The culprits:
- app/controllers/application_controller.rb
New file needed: config/application.rb
You need to add a config/application.rb.
More information: http://omgbloglol.com/post/353978923/the-path-to-rails-3-approaching-the-upgrade
The culprits:
- config/application.rb
Deprecated ERb helper calls
Block helpers that use concat (e.g., form_for) should use <%= instead of <%. The current form will continue to work for now, but you will get deprecation warnings since this form will go away in the future.
More information: http://weblog.rubyonrails.org/
The culprits:
- app/views/account/_edit_profile_fields.html.erb
- app/views/account/_signup_fields.html.erb
- app/views/account/_user_admin_tools.html.erb
- app/views/account_types/index.html.erb
- app/views/ami_creds/_new_ami_cred_form.html.erb
- app/views/azure_creds/_new_azure_cred_form.html.erb
- app/views/cloud_creds/_edit_cloud_cred_form.html.erb
- app/views/cloudsigma_creds/_new_cloudsigma_cred_form.html.erb
- app/views/ec2/edit.rhtml
- app/views/ec2_security_groups/_security_group_fields.rhtml
- app/views/ec2_security_groups/_security_group_rule_fields.rhtml
- app/views/elastichosts_creds/_new_elastichosts_cred_form.html.erb
- app/views/euca_creds/_new_euca_cred_form.html.erb
- app/views/euca_instance_types/index.html.erb
- app/views/flexiant_creds/_new_flexiant_cred_form.html.erb
- app/views/ibm_smartcloud_creds/_new_ibm_smartcloud_cred_form.html.erb
- app/views/isos/_iso_edit_form.html.erb
- app/views/microsite/_add_bundle_group_form.html.erb
- app/views/microsite/_add_new_bundle_form.html.erb
- app/views/microsite/_edit_choice.html.erb
- app/views/microsite/_form_package_group_choices.html.erb
- app/views/microsite/_form_package_group_details.html.erb
- app/views/microsite/_group_edit_form.html.erb
- app/views/microsite/_microsite_assets.html.erb
- app/views/microsite/microsite_editor.rhtml
- app/views/os_repos/edit.html.erb
- app/views/os_repos/new.html.erb
- app/views/osc_creds/_new_osc_cred_form.html.erb
- app/views/repos/edit.html.erb
- app/views/repos/new.html.erb
- app/views/s3_buckets/_bucket_fields.rhtml
- app/views/site_customization/edit.html.erb
- app/views/vms/configure.rhtml
- app/views/vms/single_page_build.rhtml
- app/views/account/_override_account_settings.html.erb
- app/views/account/_user_status_popup.html.erb
- app/views/administration/_create_microsite_form.rhtml
- app/views/administration/application_settings.rhtml
- app/views/administration/email_templates.rhtml
- app/views/bundle2/_bundle_search.rhtml
- app/views/ec2/_ec2_accounts_dropdown.html.erb
- app/views/ec2/_launch_aws_form.html.erb
- app/views/ec2_security_groups/_rules_table.html.erb
- app/views/layouts/500.html.erb
- app/views/layouts/_login.rhtml
- app/views/s3_buckets/_bucket_keys.rhtml
- app/views/s3_buckets/upload.rhtml
- app/views/shared/_change_bundle_owner.html.erb
- app/views/shared/_change_package_owner.html.erb
- app/views/stats/_users_info_and_filter.rhtml
- app/views/stats/builds_per_os_type.rhtml
- app/views/stats/charts.html.erb
- app/views/stats/index.html.erb
- app/views/stats/recent_builds.html.erb
- app/views/vms/_download_or_recover_password.html.erb
- app/views/vms/_server_name_header.html.erb
- app/views/vms/_vm_admin_tools.html.erb
- app/views/vms/_vm_search_bar.rhtml
- app/views/vms/packages.rhtml
- app/views/repos/_fields.html.erb
Deprecated constant(s)
Constants like RAILS_ENV, RAILS_ROOT, and RAILS_DEFAULT_LOGGER are now deprecated.
More information: http://litanyagainstfear.com/blog/2010/02/03/the-rails-module/
The culprits:
- app/models/my_openssl_crypto_provider.rb
- app/sidekick/server/sidekick_server_logger.rb
- app/views/layouts/_google_analytics.rhtml
- app/views/layouts/_sidebar.rhtml
- app/views/layouts/layout.rhtml
- app/views/layouts/admin_layout.rhtml
- app/lib/rails_env_loader.rb
- app/helpers/application_helper.rb
- lib/tasks/db_setup.rake
- lib/tasks/db_dump.rake
- lib/tasks/elasticserver.rake
- app/models/microsite.rb
- app/models/microsite_asset.rb
- app/models/package_file.rb
- app/models/byo_railsapp.rb
- app/models/ec2_region.rb
- app/sidekick/plugins/byo.rb
- app/controllers/microsite_skinning.rb
- app/controllers/application_controller.rb
- app/controllers/microsite_controller.rb
- app/controllers/cloud_creds_controller.rb
- app/controllers/robots_controller.rb
- app/views/layouts/500.html.erb
- app/lib/ec2_manager.rb
- app/mailers/esod_mailer.rb
- app/models/s3_bucket.rb
- app/models/ibm_smartcloud_cred.rb
- app/models/queued_email.rb
- app/models/model_helper/eucarc_parser.rb
- app/models/model_helper/unzip.rb
- app/sidekick/plugins/sidekick_ec2_sync.rb
- app/lib/s3_manager.rb
- app/lib/cart.rb
Soon-to-be-deprecated ActiveRecord calls
Methods such as find(:all), find(:first), finds with conditions, and the :joins option will soon be deprecated.
More information: http://m.onkey.org/2010/1/22/active-record-query-interface
The culprits:
- app/models/ec2_image.rb
- app/models/microsite.rb
- app/models/vm.rb
- app/models/share.rb
- app/models/package_repository.rb
- app/models/package_file.rb
- app/models/conflict.rb
- app/models/ec2_security_group_value.rb
- app/models/ec2_instance.rb
- app/models/error_notice.rb
- app/models/configuration_parameter.rb
- app/models/signup_code.rb
- app/models/bundle2.rb
- app/models/component_version.rb
- app/models/user.rb
- app/sidekick/plugins/vabs_messenger_plugin.rb
- app/sidekick/plugins/byo.rb
- app/controllers/account_controller.rb
- app/controllers/comments_controller.rb
- app/controllers/api/server_images_controller.rb
- app/controllers/db_admin/isos_controller.rb
- app/controllers/db_admin/queued_emails_controller.rb
- app/controllers/bundle2_controller.rb
- app/controllers/administration_controller.rb
- app/controllers/vms_controller.rb
- app/controllers/stats_controller.rb
- app/views/stats/recent_builds.html.erb
- app/lib/api_backend.rb
- app/models/customer_quote.rb
- app/models/vm.rb
- app/models/package_repository.rb
- app/models/software_component.rb
- app/models/configuration_parameter.rb
- app/models/output_format.rb
- app/models/signup_code.rb
- app/models/user.rb
- app/controllers/vms_controller.rb
- app/views/stats/top_portals.html.erb
- app/models/ec2_image.rb
- app/models/stats_module.rb
- app/models/customer_quote.rb
- app/models/vm.rb
- app/models/operating_system.rb
- app/models/package_repository.rb
- app/models/package_file.rb
- app/models/conflict.rb
- app/models/monitor_builder.rb
- app/models/ec2_instance.rb
- app/models/software_component.rb
- app/models/configuration_parameter.rb
- app/models/output_format.rb
- app/models/iso.rb
- app/models/signup_code.rb
- app/models/bundle2.rb
- app/models/ec2_region.rb
- app/models/component_version.rb
- app/models/user.rb
- app/sidekick/plugins/vabs_messenger_plugin.rb
- app/controllers/api/bundles_controller.rb
- app/controllers/bundle2_controller.rb
- app/controllers/vms_controller.rb
- app/controllers/stats_controller.rb
- app/models/byo_data.rb
- app/models/vm.rb
- app/models/package_repository.rb
- app/models/ec2_security_group_value.rb
- app/models/bundle2.rb
- app/models/component_version.rb
- app/models/user.rb
- app/sidekick/plugins/byo.rb
- app/controllers/db_admin/isos_controller.rb
- app/controllers/stats_controller.rb
- app/lib/belonging_or_shared_to_user_scope.rb
- app/helpers/software_components_helper.rb
- app/helpers/application_helper.rb
named_scope is now just scope
The named_scope method has been renamed to just scope.
More information: http://github.com/rails/rails/commit/d60bb0a9e4be2ac0a9de9a69041a4ddc2e0cc914
The culprits:
- app/models/s3_bucket.rb
- app/models/byo_data.rb
- app/models/microsite.rb
- app/models/vm.rb
- app/models/account_type.rb
- app/models/build_state.rb
- app/models/package_management_system.rb
- app/models/package_distro_compatibility.rb
- app/models/software_component.rb
- app/models/build_log.rb
- app/models/repo.rb
- app/models/vm_download.rb
- app/models/output_format.rb
- app/models/ec2_security_group.rb
- app/models/cloud_cred.rb
- app/models/iso.rb
- app/models/bundle2.rb
- app/models/ec2_region.rb
- app/models/component_version.rb
- app/models/user.rb
Deprecated AJAX helper calls
AJAX javascript helpers have been switched to be unobtrusive and use :remote => true instead of having a seperate function to handle remote requests.
More information: http://blog.jordanwest.me/modest-rubyist-archive/rails-3-ujs-and-csrf-meta-tags
The culprits:
- app/views/administration/email_templates.rhtml
- app/views/bundle2/_bundle2_cart_entry.rhtml
- app/views/bundle2/_bundle_explorer.rhtml
- app/views/bundle2/_paginate.rhtml
- app/views/bundles/_bundle_cart_entry.html.erb
- app/views/comments/_comment.html.erb
- app/views/ec2/_ec2_instances.html.erb
- app/views/factory/build_status.rhtml
- app/views/packages/_package_cart_entry.html.erb
- app/views/rating/_rating.rhtml
- app/views/s3_buckets/_buckets.rhtml
- app/views/shared/_paginate.rhtml
- app/views/shared/_shared_email.html.erb
- app/views/shared/_tag.html.erb
- app/views/vms/_vm_list.rhtml
- app/views/comments/_form_new.html.erb
- app/views/shared/_sharing_options.rhtml
- app/views/stats/current_builds.html.erb
- app/views/vms/_vm_admin_tools.html.erb
- app/views/cloud_creds/_edit_cloud_cred_form.html.erb
- app/views/cloudsigma_creds/_new_cloudsigma_cred_form.html.erb
- app/views/elastichosts_creds/_new_elastichosts_cred_form.html.erb
- app/views/flexiant_creds/_new_flexiant_cred_form.html.erb
- app/views/ibm_smartcloud_creds/_new_ibm_smartcloud_cred_form.html.erb
- app/views/osc_creds/_new_osc_cred_form.html.erb
Deprecated ActionMailer API
You're using the old ActionMailer API to send e-mails in a controller, model, or observer.
More information: http://lindsaar.net/2010/1/26/new-actionmailer-api-in-rails-3
The culprits:
- app/models/vm.rb
- app/controllers/account_controller.rb
- app/controllers/comments_controller.rb
- app/controllers/home_controller.rb
- app/controllers/orders_controller.rb
- app/controllers/shares_controller.rb
- app/controllers/administration_controller.rb
- app/controllers/vms_controller.rb
Old ActionMailer class API
You're using the old API in a mailer class.
More information: http://lindsaar.net/2010/1/26/new-actionmailer-api-in-rails-3
The culprits:
- app/models/microsite_asset.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment