forked from bofh/fetsite
AutoCommit Sam Aug 1 00:03:01 CEST 2015
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
|
$("#<%= @comment.commentable.formid %>").html("")
|
||||||
|
|||||||
Reference in New Issue
Block a user