diff --git a/app/controllers/blogs_controller.rb b/app/controllers/blogs_controller.rb index 7ca1f2441..27a5c8690 100644 --- a/app/controllers/blogs_controller.rb +++ b/app/controllers/blogs_controller.rb @@ -42,6 +42,6 @@ class BlogsController < ApplicationController @blog = Blog.where(:id => params[:id]).first @blog.destroy flash[:notice] = "Successfully destroyed blog." - redirect_to blogs_url + redirect_to root_url end end diff --git a/app/controllers/bookmarks_controller.rb b/app/controllers/bookmarks_controller.rb index bf3e54f08..2f62d5cd3 100644 --- a/app/controllers/bookmarks_controller.rb +++ b/app/controllers/bookmarks_controller.rb @@ -43,6 +43,6 @@ class BookmarksController < ApplicationController @bookmark = Bookmark.first(:conditions => {:id => params[:id]}) @bookmark.destroy flash[:notice] = "Successfully destroyed bookmark." - redirect_to bookmarks_url + redirect_to root_url end end diff --git a/app/controllers/status_messages_controller.rb b/app/controllers/status_messages_controller.rb index bec255e55..d4061d124 100644 --- a/app/controllers/status_messages_controller.rb +++ b/app/controllers/status_messages_controller.rb @@ -33,7 +33,7 @@ class StatusMessagesController < ApplicationController @status_message = StatusMessage.where(:id => params[:id]).first @status_message.destroy flash[:notice] = "Successfully destroyed status message." - redirect_to status_messages_url + redirect_to root_url end def show diff --git a/app/views/blogs/_blog.html.haml b/app/views/blogs/_blog.html.haml index 34d53f226..c4b0fc90b 100644 --- a/app/views/blogs/_blog.html.haml +++ b/app/views/blogs/_blog.html.haml @@ -14,4 +14,4 @@ - if mine?(post) .destroy_link - = link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete + = link_to 'Delete', blog_path(post), :confirm => 'Are you sure?', :method => :delete diff --git a/app/views/bookmarks/_bookmark.html.haml b/app/views/bookmarks/_bookmark.html.haml index 953d13b0e..4b5ab6865 100644 --- a/app/views/bookmarks/_bookmark.html.haml +++ b/app/views/bookmarks/_bookmark.html.haml @@ -15,4 +15,4 @@ - if mine?(post) .destroy_link - = link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete + = link_to 'Delete', bookmark_path(post), :confirm => 'Are you sure?', :method => :delete