【发布时间】:2018-10-11 22:43:25
【问题描述】:
我有一个销售电缆的电子商务网站,因此我想在我的基本路线中使用/cable、/cables 等。
不幸的是,activecable 默认使用/cable 路径。有什么办法可以改变吗?
到目前为止,我已经尝试在我的/config/application.rb 中进行更改(无济于事):
config.action_cable.url = "ws://www.example.com/actioncable"
任何想法将不胜感激!
【问题讨论】:
-
按照the documentation尝试
config.action_cable.mount_path = '/websocket'