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>
分享到:
相关推荐
This short early adopter book details both how...Chapter 1: Upgrading to Rails 5 Chapter 2: Changes from Rails 4.2 Chapter 3: Active Record Chapter 4: Testing Chapter 5: Rails API Chapter 6: Action Cable
新版Best HTTP Upgrading DOTween from versions older than 1.2.000 Upgrading DOTween from versions older than 1.2.000
1.2 Contributors Past and Present . . . . . . . . . . . . . . . 1 1.3 More Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 Installation 3 2.1 Short Version . . . . . . . ...
■Chapter 1: Introduction to Nginx Web Server ........................................................ 1 ■Chapter 2: Installing Nginx ....................................................................
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/...
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 ...
Oracle 安装升级迁移Different Upgrade Methods For Upgrading Your Database(11.2)官方英文版
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 ...
PC 升级 维护 完全的PC升级与维护手册,保持在PC界解决重大问题的权威地位。用简明易懂的语言向读者阐明怎样防止计算机故障和修理出现的故障,说明怎样最大限度地发挥用户计算机的功能和延长它的使用寿命。...
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 ...
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 ...
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 ...
This book is for Secret Agents who have some exposure to Python. Our focus is on the Field Agents who are ready to do more sophisticated and complex programming in Python. We'll stick to simple ...
Upgrading to DB2 Version 9.7
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/...
1.2 History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.3 Getting involved . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
Upgrading to Visual Basic .NET Upgrading to Visual Basic .NET Upgrading to Visual Basic .NET
Upgrading to Office SharePoint Server 2007.
Oracle 安装升级迁移Different Upgrade Methods For Upgrading Your Database(11.1)官方英文版
1.2. Differences from a production OpenShift installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Installation. . . . . . . . . . . . . . . . . . . . . . . . . . ....