Rails 3.0 porting