Replace rails3 plugin by rails