diff --git a/app/views/announcements/show.html.erb b/app/views/announcements/show.html.erb index 3132485..d10b751 100644 --- a/app/views/announcements/show.html.erb +++ b/app/views/announcements/show.html.erb @@ -152,7 +152,7 @@ $(function(){ $('.annc-comment-div .btn-comment').click(function(){ $.ajax({ - url: "<%= "/xhr/announcements/#{params[:slug]}-#{params[:uid]}/comment" %>", + url: "<%= "/xhr/announcements/#{URI.encode(params[:slug])}-#{params[:uid]}/comment" %>", data : {"comment" : $(this).parents('.annc-comment-div').find('.announcement-comment').html()}, dataType : "json", type : "get",