Commit 6d9cdd5d authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

fix double post

parent 212b7817
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
</ul> </ul>
</div> </div>
<% end %> <% end %>
<%= form_for(@webapp, remote: true, authenticity_token: true, html: {class: 'form-horizontal', multipart: true}) do |f| %> <%=
# FIXME: with "remote: true" the form is posted twice (there is some dirty javascript fooling around)
form_for(@webapp, authenticity_token: true, html: {class: 'form-horizontal', multipart: true}) do |f| %>
<div class="form-group"> <div class="form-group">
<%= f.label :name, "Name * ", class: "col-sm-2 control-label" %> <%= f.label :name, "Name * ", class: "col-sm-2 control-label" %>
<div class="col-sm-5"><%= f.text_field :name, required: true, class: "form-control" %></div> <div class="col-sm-5"><%= f.text_field :name, required: true, class: "form-control" %></div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment