Help text added for  actions form.
Fixed invialid redirection in dashboard
This commit is contained in:
Juan Salvador Pérez García
2018-07-04 10:50:58 +02:00
parent 6bb9b1be8a
commit 9f0ca0cec7
4 changed files with 7 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ class Dashboard::PollsController < Dashboard::BaseController
@poll = Poll.new(poll_params.merge(author: current_user, related: proposal, stats_enabled: false))
if @poll.save
redirect_to proposal_dashboard_poll_path(proposal, poll), notice: t("flash.actions.create.poll")
redirect_to proposal_dashboard_polls_path(proposal), notice: t("flash.actions.create.poll")
else
render :new
end