Class: Inboxes::MessagesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/inboxes/messages_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



5
6
7
8
9
10
11
12
13
14
# File 'app/controllers/inboxes/messages_controller.rb', line 5

def create
  @message.user = current_user
  @message.discussion = @discussion
  @message.save

  respond_to do |format|
    format.html { redirect_to @message.discussion }
    format.js
  end
end