Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

made 1 mistake in previous commit

  • Loading branch information...
commit dcf09485eba4d0cce9fd49ef94f480f5be08a39f 1 parent d21613f
@strix3000 strix3000 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/controllers/messages_controller.rb
View
2  app/controllers/messages_controller.rb
@@ -2,7 +2,7 @@ class MessagesController < ApplicationController
def create
@recipient = User.find(params[:id])
- @message = Message.new(:content => params[:content], :user => current_user, :recipient => @recipient)
+ @message = Message.new(:content => params[:content], :user => current_user)
@message.save
mes_recipient = MessageRecipient.new(:message => @message, :user => @recipient)
mes_recipient.save
Please sign in to comment.
Something went wrong with that request. Please try again.