You'd need to provide some code, but you could handle the voting mechanism with your backend code, like this:
#config/routes.rb
resources :posts do
match ":post_id", to: :vote, via: [:post, :delete], as: "vote"
end
#app/controllers/posts_controller.rb
def vote
@post = Post.find(params[:post_id])
@post.liked_by current_user
respond_to do |format|
format.html
format.js
end
end
#app/views/items/vote.js.erb
alert("Thanks for your vote!");
//kudos button code here