curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

Ruby on Rails: Change Action Cable lesson to be updated to use Stimulus or Turbo Stream broadcasts

Open AhmedTheGreatest opened this issue 1 year ago • 5 comments

Checks

Describe your suggestion

If you want to send dynamic parameters from the client when setting up the server, care needs to be taken. You can only get params once the DOM has rendered, and it’s common therefore to wrap code in a turbolinks:load event listener.

The Websockets and ActionCable lesson should be updated to use Stimulus or Turbo Streams Broadcasts as advised by roli_on_rails in discord. Here is a link to the discord conversation.

Path

Ruby / Rails

Lesson Url

https://www.theodinproject.com/lessons/ruby-on-rails-websockets-and-actioncable

(Optional) Discord Name

tornado_77

(Optional) Additional Comments

No response

AhmedTheGreatest avatar Jul 11 '24 07:07 AhmedTheGreatest

I probably agree with this, but we'll need someone to step up who has the knowledge and is willing to put in the work. And it'll be a good bit of work to rewrite the guide to use turbo.

But I'll open it up and see if anyone wants to work on it.

JoshDevHub avatar Jul 15 '24 18:07 JoshDevHub

@RolandStuder Sorry if this ping is out of the blue, but would you have any interest in working on this?

JoshDevHub avatar Jul 15 '24 19:07 JoshDevHub

@JoshDevHub I don't mind the ping at all. Not sure if I will have time. But I will keep it in mind, and maybe start drafting up some stuff. I think it would need more than one lesson, as throwing in action cable basics and turbo stream broadcasts might be much a bit much.

I think we might want to look at existing resources. Also there is no associated project, so the lesson "just" exists but there is no call to action to do anything with it. I think it would be good to have at least a little project. Maybe something that encourages you to have some kind of notification system for your final Rails project.

RolandStuder avatar Jul 17 '24 08:07 RolandStuder

@JoshDevHub I don't mind the ping at all. Not sure if I will have time. But I will keep it in mind, and maybe start drafting up some stuff. I think it would need more than one lesson, as throwing in action cable basics and turbo stream broadcasts might be much a bit much.

I think we might want to look at existing resources. Also there is no associated project, so the lesson "just" exists but there is no call to action to do anything with it. I think it would be good to have at least a little project. Maybe something that encourages you to have some kind of notification system for your final Rails project.

I 100% agree with you that there should be some sort of project related to ActionCable and maybe even Turbo Streams, there was no mention of Turbo Streams after completing the Turbo Streams after completing its lesson. I would love to get a bit of practice with Action Cable and Turbo Streams. And I think it will be a good idea to have a notification (follower or friend notification?) system for The Final Project.

AhmedTheGreatest avatar Jul 18 '24 09:07 AhmedTheGreatest

This issue is stale because it has had no activity for the last 30 days.

github-actions[bot] avatar Aug 18 '24 01:08 github-actions[bot]