change rails plugin to rails3