]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
started work on /diary
[rails.git] / app / controllers / user_controller.rb
index 5b370334cc0c145f90f3d5c0e57d61c7c2ff963f..354e8c66f2ea6b252b53cbd7899589253f98f8c8 100644 (file)
@@ -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