Use rails plugin, rails3 deprecated