AutoCommit Sam Aug 1 00:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-01 00:03:01 +02:00
parent 786cde0d08
commit ca6deabb34
3 changed files with 15 additions and 14 deletions

View File

@@ -22,7 +22,8 @@ num = {"Beispiel"=> 2, "Survey::Question"=> 7}
respond_to do |format| respond_to do |format|
format.html # show.html.erb # format.html # show.html.erb
format.js
format.json { render json: @comment } format.json { render json: @comment }
end end
end end

View File

@@ -1,14 +1,14 @@
<div id="<%= form.formid %>"> <div id="<%= form.formid %>">
<%= semantic_form_for form , remote:true, html: {class: "form-inline"} do |f| %> <%= semantic_form_for form , remote: true, html: {class: "form-inline"} do |f| %>
<%= f.inputs do %> <%= f.inputs do %>
<%= f.input :commentable_id, as: :hidden %> <%= f.input :commentable_id, as: :hidden %>
<%= f.input :commentable_type, as: :hidden %> <%= f.input :commentable_type, as: :hidden %>
<%= f.input :text, as: :string %> <%= f.input :text, as: :string %>
<%= f.input :anonym %> <%= f.input :anonym %>
<% end %> <% end %>
<%= f.actions do %> <%= f.actions do %>
<%= f.action :submit, :as => :input %> <%= f.action :submit, :as => :input %>
<% end %> <% end %>
<% end %> <% end %>
</div> </div>

View File

@@ -1 +1 @@
$("#<%= @comment.commentable.formid %>").html("")