diff --git a/app/helpers/cable_helper.rb b/app/helpers/cable_helper.rb index e715806..663a8ef 100644 --- a/app/helpers/cable_helper.rb +++ b/app/helpers/cable_helper.rb @@ -2,6 +2,6 @@ module CableHelper def script_aware_action_cable_meta_tag tag.meta \ name: "action-cable-url", - content: "#{request.script_name}#{ActionCable.server.config.mount_path}" + content: Pathname(request.script_name) + Pathname(ActionCable.server.config.mount_path) end end