Sha256: df7aaecc0525759c6d06faf6e2e9f034ee7f5b11e82601d6e82ec2f987105d10
Contents?: true
Size: 264 Bytes
Versions: 4
Compression:
Stored size: 264 Bytes
Contents
class MessagesController < ApplicationController respond_to :html, :js, :json def create @chat = Chat.find(params[:chat_id]) @message = @chat.messages.build(params[:message]) @message.save respond_with @message, :location => @chat end end
Version data entries
4 entries across 4 versions & 1 rubygems