Commit ae29ec31 authored by Long Nguyen's avatar Long Nguyen

Remove unused view and update redirect when destroy snippet

parent 8dc19494
...@@ -43,7 +43,7 @@ class SnippetsController < ApplicationController ...@@ -43,7 +43,7 @@ class SnippetsController < ApplicationController
@snippet.destroy @snippet.destroy
redirect_to snippets_path redirect_to dashboard_snippets_path
end end
def raw def raw
......
- page_title "By #{@user.name}", "Snippets"
%ol.breadcrumb
%li
= link_to snippets_path do
Snippets
%li
= @user.name
.pull-right.hidden-xs
= link_to user_path(@user) do
#{@user.name} profile page
= render 'snippets'
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