diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4acb234..3cdfb83 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -125,7 +125,7 @@ module ApplicationHelper tag.tr tag.td t('.no_items'), colspan: 10, class: 'hint' end - def render_turbo_stream(partial, locals) + def render_turbo_stream(partial, locals = {}) "Turbo.renderStreamMessage('#{j(render partial: partial, locals: locals)}'); return false;" end diff --git a/app/views/units/_form.html.erb b/app/views/units/_form.html.erb index f02f404..db95dbc 100644 --- a/app/views/units/_form.html.erb +++ b/app/views/units/_form.html.erb @@ -22,7 +22,7 @@