19 lines
305 B
Plaintext
19 lines
305 B
Plaintext
- if @room
|
|
%h4= @room.name
|
|
|
|
= turbo_stream_from @room
|
|
.contain
|
|
#messages
|
|
= render @messages
|
|
= render partial: 'layouts/new_message_form'
|
|
|
|
%h1 Rooms index
|
|
|
|
- if policy(Room).new?
|
|
= render partial: "layouts/new_room_form"
|
|
|
|
= turbo_stream_from "rooms"
|
|
#rooms
|
|
%div
|
|
= render @rooms
|