Skip to content
Snippets Groups Projects
Commit ae29ec31 authored by Long Nguyen's avatar Long Nguyen
Browse files

Remove unused view and update redirect when destroy snippet

parent 8dc19494
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -43,7 +43,7 @@ class SnippetsController < ApplicationController
 
@snippet.destroy
 
redirect_to snippets_path
redirect_to dashboard_snippets_path
end
 
def raw
Loading
Loading
- 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'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment