I have an ecommerce website that sells cables, and as such I'd like to use /cable, /cables etc in my base routes.
Unfortunately activecable uses the /cable path by default. Is there any way I can change this?
So far I've tried changing (to no avail) in my /config/application.rb:
config.action_cable.url = "ws://www.example.com/actioncable"
Any thoughts would be much appreciated!
In your routes.rb :
Add this line:
mount ActionCable.server => '/your_route_for_action_cable'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With