Commit 9647445a by tady

fix redirect url

parent 922e3863
...@@ -82,7 +82,7 @@ class PostsController < ApplicationController ...@@ -82,7 +82,7 @@ class PostsController < ApplicationController
def destroy def destroy
@post.destroy @post.destroy
respond_to do |format| respond_to do |format|
format.html { redirect_to posts_url, flash: { success: 'Post successfully deleted.' } } format.html { redirect_to flow_url, flash: { success: 'Post successfully deleted.' } }
format.json { head :no_content } format.json { head :no_content }
end end
end end
......
...@@ -43,7 +43,7 @@ class TagsController < ApplicationController ...@@ -43,7 +43,7 @@ class TagsController < ApplicationController
def destroy def destroy
@tag.destroy @tag.destroy
respond_to do |format| respond_to do |format|
format.html { redirect_to posts_url, flash: { success: 'Tag successfully deleted.' } } format.html { redirect_to flow_url, flash: { success: 'Tag successfully deleted.' } }
format.json { head :no_content } format.json { head :no_content }
end end
end end
......
Markdown is supported
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