fixed rails3 plugin