fixed messages create error
This commit is contained in:
@@ -23,7 +23,7 @@ class MessagesController < ApplicationController
|
||||
end
|
||||
|
||||
def create
|
||||
if Message.create(params[:message])
|
||||
if Message.create(message_params)
|
||||
respond_to do |format|
|
||||
format.html { redirect_to user_messages_path(:user_id => current_user.user_id) }
|
||||
format.json { render :json => {:msg => "success"} }
|
||||
|
||||
Reference in New Issue
Block a user