Rails3 -> rails plugin