Sha256: a507134fb38904512b8737051bbf9b5d7294ba62a21fc9fca6d8cf9cedc6997b
Contents?: true
Size: 337 Bytes
Versions: 4
Compression:
Stored size: 337 Bytes
Contents
class MessagesController < ApplicationController def show @message = Message.new(record_id: 1, content: "My message") end def create respond_to do |format| format.html { redirect_to message_url(id: 1) } format.turbo_stream { render turbo_stream: turbo_stream.append(:messages, "message_1") } end end end
Version data entries
4 entries across 4 versions & 1 rubygems