`
dcaoyuan
  • 浏览: 306602 次
社区版块
存档分类
最新评论

Some Tips for Upgrading to Rails 1.2.x

阅读更多

Bellow are some issues that I met when upgraded from rails 1.1.6 to 1.2.x:

1.About enrivonment.rb
Make sure your application configuration behind:

Rails::Initializer.run do |config|
  ...
end

I met this issue when I put following code:

require 'environments/localization_environment'
require 'localization'
Localization::load_localized_strings
require 'environments/user_environment'

before that closure, which works under 1.1.6, but don't under 1.2.x

2.About ActionMailer::Base.server_settings
If you get errors like:

uninitialized constant ActiveSupport::Deprecation::RAILS_DEFAULT_LOGGER (NameError)

try to change your ActionMailer::Base.server_settings to ActionMailer::Base.smtp_settings

3.Put all "include" statements inside class definitions
You must put include statements inside class/module definitions instead of outside a class/module definition in Rails 1.2.x. Otherwise, you'll get:

Error calling Dispatcher.dispatch #<NameError: cannot remove Object::COPYRIGHT>

分享到:
评论

相关推荐

    Best HTTP (Pro)

    新版Best HTTP Upgrading DOTween from versions older than 1.2.000 Upgrading DOTween from versions older than 1.2.000

    win3.x 下的wing 玩某些老游戏必备比如孔明传

    selected into a WinGDC on Win3x - use CreateBitmap(8,8,1,8,0) DrawIcon will crash WinGBitBlt and WinGStretchBlt will not always blt to the correct location when you have changed the Viewport and/...

    Android代码-nubes

    Upgrading it to Vert.x 3.5 requires a lot of work, I am looking at it, but since it's a "weekend" project, it might take months. Sorry for the inconvenience. Obviously any kind of help would be ...

    RemObjects DataAbstract Documents mht

    DA26 - Upgrading to Data Abstract... DA28 - Easy Steps to Creating a Data... DA29 - How to Configure Additional... DA30 ?Enhancements to Data Retrieval... DA31 - Simplifying Permissions DA32 - Master ...

    python3.6.5参考手册 chm

    PEP 380: Syntax for Delegating to a Subgenerator PEP 409: Suppressing exception context PEP 414: Explicit Unicode literals PEP 3155: Qualified name for classes and functions PEP 412: Key-Sharing ...

    MySQL V5.5帮助文档

    1.2. Typographical and Syntax Conventions 1.3. Overview of the MySQL Database Management System 1.3.1. What is MySQL? 1.3.2. History of MySQL 1.3.3. The Main Features of MySQL 1.4. MySQL Development ...

    Ebooks For Dummies Collection

    Mac Os X Panther Timesaving Techniques For Dummies.pdf Mac Os X Tiger Timesaving Techniques For Dummies.pdf Macbook For Dummies.pdf ** Macromedia Flash 8 For Dummies.pdf ** Macromedia Studio 8 AIO ...

    Oracle 安装升级迁移Different Upgrade Methods For Upgrading Your Database(11.2)

    Oracle数据库是全球广泛使用的数据库管理系统之一,特别是在企业级应用中。11.2版本是Oracle数据库的一个重要里程碑,提供了许多增强的功能和优化。本篇文章将详细介绍Oracle数据库从11.2之前的版本升级到11.2的不同...

    hadoop-2.2.0-src.tar

    A couple of important points to note while upgrading to hadoop-2.2.0: HDFS - The HDFS community decided to push the symlinks feature out to a future 2.3.0 release and is currently disabled. YARN/...

    Geoserver用户手册

    1.2 History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.3 Getting involved . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

    Upgrading to Office SharePoint Server 2007

    Upgrading to Office SharePoint Server 2007.

    Introducing Red Hat CodeReady Containers.pdf

    1.2. Differences from a production OpenShift installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Installation. . . . . . . . . . . . . . . . . . . . . . . . . . ....

    官方资料:[英文]白皮书:Upgrading to Oracle Database 12c 升级到ORACLE12c (12.1.0.2).pdf

    官方资料:[英文]白皮书:Upgrading to Oracle Database 12c (12.1.0.2)升级到ORACLE12c (12.1.0.2) Comparing Upgrade and Migration;Database Upgrade;Database Migration.;Multitenant Architecture;...

    Oracle.Application.Express.Administration.For.DBAs.and.Developers.epub

    The book is also useful to administrators responsible for installation and upgrade, backup and recovery, and the ongoing monitoring of the APEX engine and the applications built upon it. Table of ...

    hyperion system 安装

    hyperion system 安装 ... Upgrading Hyperion Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Chapter 3. System Requirements . . . .

    MySQL 5.6 Reference Manual

    1. Licenses for Third-Party Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

Global site tag (gtag.js) - Google Analytics