I have a Backbone.js model that I\'m trying to destroy when the user clicks a link in the model\'s view. The view is something like this (pseudocode because it\'s implemented in
Are you sure of your URL ? Do you append a .json
at the end of the Backbone.Model url ? Since you check this on your server side (respond_to do |format| ... end), you might not send the correct head :ok
response
Try with this destroy
rails method to test if this is the problem :
def destroy
@save = current_user.team.listing_saves.find(params[:id])
@save.destroy
head :ok
end