Remove unused view and update redirect when destroy snippet
This commit is contained in:
parent
8dc19494c3
commit
ae29ec31e4
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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'
|
|
||||||
Loading…
Reference in New Issue