Show validation errors on nested documents.

This commit is contained in:
Senén Rodero Rodríguez
2017-08-18 12:07:36 +02:00
parent 0b23467f3e
commit 723173ae39
3 changed files with 16 additions and 12 deletions

View File

@@ -30,6 +30,7 @@ class ProposalsController < ApplicationController
if @proposal.save
redirect_to share_proposal_path(@proposal), notice: I18n.t('flash.actions.create.proposal')
else
@proposal = prepare_edit_resource_documents(@proposal)
render :new
end
end