X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/60a294c40e341af16fa2eac6de5df2b0917a74be..8758685a86c3032a412183a53399e3e77dae75a1:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 5b370334c..354e8c66f 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -162,7 +162,16 @@ class UserController < ApplicationController def diary @this_user = User.find_by_display_name(params[:display_name]) end - + + def contact_others(user_id, message_body) + @to = User.find_by_id(user_id) + @to.messages.new = body + if @to.save + flash[:notice] = Message sent + end + + #Send a message to other users - maybe there's a rails messaging plugin + end end