`Attachment.find_by_id(params[:id]).destroy`. No need for two lines and a variable.