Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails turbo import #359

Closed
chmich opened this issue Apr 27, 2023 · 1 comment
Closed

Rails turbo import #359

chmich opened this issue Apr 27, 2023 · 1 comment

Comments

@chmich
Copy link

chmich commented Apr 27, 2023

Hi

little thing:

On `vite:install', it generates these two lines in application.js

//import * as Turbo from '@hotwired/turbo'
//Turbo.start()

For using turbo thats right, but for using action-cable and turbo to get running you need this:

import '@hotwired/turbo-rails'

Not a big thing, but getting ActionCable up and running has a few more steps and I spent half a day looking for it.

see issue on turbo-rails

Thanks,
Christian

@chmich chmich changed the title Rails turbo impoert Rails turbo import Apr 27, 2023
@ElMassimo
Copy link
Owner

Hi Christian!

Thanks, this info might be useful to someone setting up ActionCable, so I'll convert it to a Discussion.

I think I'd prefer dropping these "examples" from the installation script, as they will likely change and need to be updated over the years. In addition, not every Vite Rails user is using these libraries, and I don't want beginners to assume they are necessary (nor recommended).

Repository owner locked and limited conversation to collaborators May 3, 2023
@ElMassimo ElMassimo converted this issue into discussion #364 May 3, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants