TheOdinProject / curriculum

The open curriculum for learning web development
https://www.theodinproject.com/
Other
9.4k stars 13.04k forks source link

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

Open AhmedTheGreatest opened 1 month ago

AhmedTheGreatest commented 1 month ago

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

JoshDevHub commented 1 month ago

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 commented 1 month ago

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

RolandStuder commented 1 month ago

@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.

AhmedTheGreatest commented 1 month ago

@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.

github-actions[bot] commented 2 weeks ago

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