fix bug in attachments_controller

add attachments_controller#destroy
fix bug on attachments_controller#create