Recently I was asked to migrate an existing rails app from its hosting to Rackspace. I was told the code base for the project was not very 'good', and I was supposed to fix issues that stood in the way during the migration.
I've been involved in quite a few existing rails projects for the past two years. I have to say this project is by far the most tough one with so many bad practices. I'll share a few here.
Passenger 支持 Nginx 了!4月份最让人激动的消息。
在 OS X 上安装 passenger 和 nginx 非常简单,上面的链接中有一段 peepcode 的视频。这里作一下简单的文字描述:
If a model has a virtual attribute and has a validates_numericality_of validation on it, calling valide? on it will cause an undefined method `attr_name_before_type_cast' error.
For example, say we have a Product model, and we have a price attribute for whatever reason that doesn't persist in database:
Safari 4 Beta is just what Apple advertises, fast, cover flow ... And I love the tabs on title, which saves some screen real-estate.
Several plugins stop working. For 1Password, installing the latest beta would solve the problem. For others, I don't use them too often anyway.
Amazon announced AWS Management Console today, now users of AWS have a web-based, point-and-click, graphical user interface to manage AWS services (currently only EC2 is included).
Here's a screenshot: