error fixed. had to use rack's methodoverride in order to utise the delete route