lib/faalis/dashboard/sections/resource.rb in faalis-2.0.0.rc3 vs lib/faalis/dashboard/sections/resource.rb in faalis-2.0.0.rc4
- old
+ new
@@ -112,9 +112,10 @@
if _override_views.include? section.to_sym
f.js
f.html
else
flash[:success] = msg
+
path = Rails.application.routes.url_helpers.send(@index_route)
# TODO: We really need to put setup routed on top of this method
f.js { render "faalis/dashboard/resource/#{section}" }
f.html { redirect_to path }
end