@@ -6,7 +6,7 @@
<div class="alert alert-danger"><%= @check.errors.full_messages.first %></div>
<% end %>
-<%= form_for @check do |f| %>
+<%= form_for @check, remote: true do |f| %>
<div class="form-group">
<%= f.label :query_id, "Query" %>
<div class="hide">
@@ -2,7 +2,7 @@
<div class="alert alert-danger"><%= @dashboard.errors.full_messages.first %></div>
-<%= form_for @dashboard, url: (@dashboard.persisted? ? dashboard_path(@dashboard, variable_params) : dashboards_path(variable_params)) do |f| %>
+<%= form_for @dashboard, url: (@dashboard.persisted? ? dashboard_path(@dashboard, variable_params) : dashboards_path(variable_params)), remote: true do |f| %>
<%= f.label :name %>
<%= f.text_field :name, class: "form-control" %>