Change param[:id] to param[:slug]