leave a space after the comma after primary' and remove the space behind params[:id] and you're good to go