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|
|
||||
format.html # show.html.erb
|
||||
# format.html # show.html.erb
|
||||
format.js
|
||||
format.json { render json: @comment }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<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.input :commentable_id, as: :hidden %>
|
||||
<%= f.input :commentable_type, as: :hidden %>
|
||||
@@ -10,5 +10,5 @@
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -1 +1 @@
|
||||
|
||||
$("#<%= @comment.commentable.formid %>").html("")
|
||||
|
||||
Reference in New Issue
Block a user