Business intelligence made simple
Fixed checks and dashboards forms
Andrew Kane7a38ffd70f64
diff --git a/app/views/blazer/checks/_form.html.erb b/app/views/blazer/checks/_form.html.erbindex de601bd8..093f9d95 100644--- a/app/views/blazer/checks/_form.html.erb+++ b/app/views/blazer/checks/_form.html.erb@@ -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">diff --git a/app/views/blazer/dashboards/_form.html.erb b/app/views/blazer/dashboards/_form.html.erbindex 79148b52..8039effd 100644--- a/app/views/blazer/dashboards/_form.html.erb+++ b/app/views/blazer/dashboards/_form.html.erb@@ -2,7 +2,7 @@<div class="alert alert-danger"><%= @dashboard.errors.full_messages.first %></div><% end %>-<%= 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| %><div class="form-group"><%= f.label :name %><%= f.text_field :name, class: "form-control" %>