class MessageController < ApplicationController
layout 'site'
- # before_filter :authorize
+
before_filter :authorize_web
before_filter :require_user
message.body = body
message.title = title
message.to_user_id = params[:user_id]
- message.from_display_name = to_user.display_name
message.from_user_id = @user.id
message.sent_on = Time.now