Save 36% for Black Friday! Learn more

New Discussion

Notifications

You’re not receiving notifications from this thread.

How do I change the actioncable default path?

0
Rails

Hi there,

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 in my application.rb:

config.action_cable.url = "ws://www.example.com/actioncable"

Any thoughts would be much apprecaited!

Cheers,

Marcus

Join the discussion
Create an account Log in