Skip to content

Commit a919a77

Browse files
committed
Fix ActionView::MissingTemplate error on "Save and Add"
1 parent cabc75f commit a919a77

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/views/staff/time_slots/create.turbo_stream.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
%turbo-stream{action: 'datatable-add', target: 'organizer-time-slots'}
55
%template
6-
= render(time_slot_decorated)
6+
= render(partial: 'time_slot', formats: [:html], object: time_slot_decorated)
77

88
= turbo_stream.update 'flash' do
99
= show_flash

app/views/staff/time_slots/update.turbo_stream.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
%turbo-stream{action: 'datatable-update', target: 'organizer-time-slots', 'row-id': @time_slot.id}
44
%template
5-
= render(time_slot_decorated)
5+
= render(partial: 'time_slot', formats: [:html], object: time_slot_decorated)
66

77
= turbo_stream.update 'flash' do
88
= show_flash

0 commit comments

Comments
 (0)