From: Tom Hughes Date: Thu, 9 Feb 2017 20:20:55 +0000 (+0000) Subject: Render message properly on error X-Git-Tag: live~3611 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/afa82bd2b174b02e0515d3aae9fba319a0962498?hp=4709d90594c3cc35b4bb4f8db259abf9f89c2fe6;ds=sidebyside Render message properly on error --- diff --git a/app/controllers/message_controller.rb b/app/controllers/message_controller.rb index f4c465c93..450313e62 100644 --- a/app/controllers/message_controller.rb +++ b/app/controllers/message_controller.rb @@ -28,10 +28,10 @@ class MessageController < ApplicationController redirect_to :action => "inbox", :display_name => @user.display_name end end - else - @message ||= Message.new(message_params.merge(:recipient => @this_user)) - @title = t "message.new.title" end + + @message ||= Message.new(message_params.merge(:recipient => @this_user)) + @title = t "message.new.title" end # Allow the user to reply to another message.