score:0

Accepted answer

there's problem in this line

url = '/sources/data/' + $('#source_id').val() + '/' + $(this).val();

you have to

add extension 'json' to the url

or change route file

resources :source, defaults: {format: :json}


Related Query

More Query from same tag