Use _url helper instead of _path

#727
This commit is contained in:
Artur Beljajev 2018-02-24 12:00:59 +02:00
parent 198a19e441
commit ad75564e97
2 changed files with 4 additions and 2 deletions

View file

@ -71,7 +71,7 @@ module Admin
DomainDeleteForcedEmailJob.enqueue(@domain.id, params[:template_name])
end
redirect_to edit_admin_domain_path(@domain), notice: t('.scheduled')
redirect_to edit_admin_domain_url(@domain), notice: t('.scheduled')
end
def cancel_force_delete
@ -81,7 +81,7 @@ module Admin
flash.now[:alert] = I18n.t('failed_to_update_domain')
end
redirect_to edit_admin_domain_path(@domain)
redirect_to edit_admin_domain_url(@domain)
end
def versions