changed from rails3 to rails plugin