L'url envoyée dans la demande d'informations permet à l'utilisateur de l'éditer

This commit is contained in:
echarp 2014-07-01 21:06:46 +02:00
parent 959bd2952e
commit 8e80e7e9ff
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ class NotesController < ApplicationController
if params[:envoiParMail] == 'oui'
# Send an update mail to its author
NoteMailer.create(@note).deliver
@note.contents = t('.sendByMailWrap', contents: @note.contents)
@note.contents = t '.sendByMailWrap', contents: @note.contents
@note.save
end

View File

@ -8,6 +8,6 @@
\
=t '.edit_link'
\
= edit_moderation_url @note.event
= edit_event_url @note.event, secret: @note.event.secret
\
=t '.signature'