Skip to content

Instantly share code, notes, and snippets.

@dzjin
Created April 26, 2014 16:36
Show Gist options
  • Save dzjin/11324702 to your computer and use it in GitHub Desktop.
Save dzjin/11324702 to your computer and use it in GitHub Desktop.
function eval_tags (){
tags = $('#tags').val()
$.get("/tags/usertags/", $('#tags').val())
.done(function() {
alert( "second success" );
})
.fail(function() {
alert( "error" );
})
.always(function() {
alert( "finished" );
});
console.log(tags + count);
count++;
}
get "tags/usertags/:tags", to: 'tags#usertags', as: 'usertags'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment