Remove unused view and update redirect when destroy snippet

This commit is contained in:
Long Nguyen 2016-05-05 14:57:34 +07:00
parent 8dc19494c3
commit ae29ec31e4
2 changed files with 1 additions and 14 deletions

View File

@ -43,7 +43,7 @@ class SnippetsController < ApplicationController
@snippet.destroy
redirect_to snippets_path
redirect_to dashboard_snippets_path
end
def raw

View File

@ -1,13 +0,0 @@
- 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'