Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I change the actioncable default path?

Marcus S asked in 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

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,563+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.