module SimpleAdmin module PathHelper def resource_path(res, options={}) if res.new_record? send("simple_admin_#{@interface.collection}_path", options) else send("simple_admin_#{@interface.member}_path", res, options) end end end end