Business intelligence made simple
Removed redirect for turbolinks
Andrew Kane6d84a89a8352
diff --git a/app/controllers/blazer/checks_controller.rb b/app/controllers/blazer/checks_controller.rbindex 987d4418..bcd57c9f 100644--- a/app/controllers/blazer/checks_controller.rb+++ b/app/controllers/blazer/checks_controller.rb@@ -19,7 +19,7 @@ module Blazer@check.creator = blazer_user if @check.respond_to?(:creator_id=) && blazer_userif @check.save- redirect_to run_check_path(@check)+ redirect_to query_path(@check.query)elserender :newend@@ -27,7 +27,7 @@ module Blazerdef updateif @check.update(check_params)- redirect_to run_check_path(@check)+ redirect_to query_path(@check.query)elserender :editenddiff --git a/app/views/blazer/checks/index.html.erb b/app/views/blazer/checks/index.html.erbindex 6d10d508..c2e2f9b3 100644--- a/app/views/blazer/checks/index.html.erb+++ b/app/views/blazer/checks/index.html.erb@@ -32,7 +32,7 @@</td><td style="text-align: right; padding: 1px;"><%= link_to "Edit", edit_check_path(check), class: "btn btn-info" %>- <%= link_to "Run Now", run_check_path(check), class: "btn btn-primary" %>+ <%= link_to "Run Now", query_path(check.query), class: "btn btn-primary" %></td></tr><% end %>