dimanche 1 mars 2015

this get method seems to be working but there are errors in the console


I have the script below:



disallow_part = {
disallow_part: '#disallow-part'

init: ->
@setListeners()

setListeners: ->
$(@disallow_part).live 'click', ->
partId = $(this).data("part-id")
augmentId = $(this).data("augment-id")
$.get("/parts/#{partId}/disallow_part_for_augment/#{augmentId}", null, 'script')
}


It seems to be hitting that route because records are being added to the db but in the console I get this error.



GET http:***/parts 404 (Not Found)



Any idea what's going on?





Aucun commentaire:

Enregistrer un commentaire