redirect to root instead of users question site

This commit is contained in:
pixeldesu 2015-04-26 13:19:04 +02:00
parent aac84c623f
commit 13d67b51f0
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
%ul.dropdown-menu.dropdown-menu-right{role: :menu}
- if current_user.mod? or @question.user == current_user
%li.text-danger
%a{href: '#', data: { action: 'ab-question-destroy', q_id: @question.id, redirect: show_user_questions_path(@question.user.screen_name) }}
%a{href: '#', data: { action: 'ab-question-destroy', q_id: @question.id, redirect: '/' }}
%i.fa.fa-trash-o
Delete Question
- unless @question.user == current_user