From 07ed3e2f211bf9641d85005c340d32af5428eb40 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 21 Apr 2015 17:22:12 -0300 Subject: [PATCH] report-abuse: fix html parameter by converting it to json --- app/views/profile/report_abuse.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/profile/report_abuse.html.erb b/app/views/profile/report_abuse.html.erb index 0b63206..b4bccef 100644 --- a/app/views/profile/report_abuse.html.erb +++ b/app/views/profile/report_abuse.html.erb @@ -24,7 +24,7 @@ $('#report-abuse-submit-button').css('cursor', 'progress'); $.ajax({ type: 'POST', - url: <%= url_for({:controller => 'profile', :action => 'register_report', :profile => profile.identifier}) %>, + url: <%= url_for({:controller => 'profile', :action => 'register_report', :profile => profile.identifier}).to_json %>, data: $(form).serialize(), dataType: 'json', success: function(data, status, ajax){ -- libgit2 0.21.2