Files
fetsite/app/views/comments/_form.html.erb
2015-08-01 00:03:01 +02:00

15 lines
403 B
Plaintext

<div id="<%= form.formid %>">
<%= 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 %>
<%= f.input :text, as: :string %>
<%= f.input :anonym %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>
</div>