diff options
author | francis <francis> | 2008-10-03 17:48:37 +0000 |
---|---|---|
committer | francis <francis> | 2008-10-03 17:48:37 +0000 |
commit | a70a725316ec8c21522dd921c9a0c863577defe9 (patch) | |
tree | 193507eac3d3ead3a99ebf22a6d91be1388f624b /app/controllers/help_controller.rb | |
parent | 0fd88e98a36adf9dac96aac247cf9df2665cdb6d (diff) |
Give link to user page if logged in user uses contact form.
Diffstat (limited to 'app/controllers/help_controller.rb')
-rw-r--r-- | app/controllers/help_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index 15a846e50..0ba7da12d 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: help_controller.rb,v 1.7 2008-07-09 14:12:56 francis Exp $ +# $Id: help_controller.rb,v 1.8 2008-10-03 17:48:37 francis Exp $ class HelpController < ApplicationController @@ -27,7 +27,7 @@ class HelpController < ApplicationController params[:contact][:email], params[:contact][:subject], params[:contact][:message], - (@user ? ("logged in as user " + @user.email) : "not logged in") + @user ) flash[:notice] = "Your message has been sent. Thank you for getting in touch! We'll get back to you soon." redirect_to frontpage_url |