Skip to content

Commit

Permalink
Error posting an answer publiclab#1938 (publiclab#1945)
Browse files Browse the repository at this point in the history
* form http request changes to post

* Tests for long answer using POST request

* Commented test for GET request

* Uncommented the test for large answers
  • Loading branch information
sagarpreet-chadha authored and jywarren committed Jan 26, 2018
1 parent 8b712a8 commit 427aeef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/comments/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form id="comment-form" data-remote="true" class="well" <% if params[:controller] == 'questions' %> action= "/answers/create/<%= @node.nid %>" <% else %> action="/comment/create/<%= @node.nid %>" <% end %>>
<form id="comment-form" data-remote="true" class="well" <% if params[:controller] == 'questions' %> action= "/answers/create/<%= @node.nid %>" <% else %> action="/comment/create/<%= @node.nid %>" <% end %> method="post" >
<h4 style="margin-top:0;"><%= title %></h4>

<style>
Expand Down
6 changes: 6 additions & 0 deletions test/functional/answers_controller_test.rb

Large diffs are not rendered by default.

0 comments on commit 427aeef

Please sign in to comment.