I think this version work on newer version of rails including rails 3

Please pull if you think it seems fine.