Activity
You can. Check out the ActiveStorage guide for variants.
This should be fixed!
We will have more available soon. 👍
Some of the advanced ones later on will be paid but most will be free.
Advice from the author himself! Thanks Domizio!
We recommend ASDF instead because it supports other programming languages, like Ruby, Node.js, Python, etc. This is important because Rails applications will often need Node as their JavaScript gets more complicated.
It also uses .ruby-version and .node-version files just like the other language managers.
Plus, it's simpler than RVM the which requires a deeper shell integration.
Posted in Custom Turbo Stream Actions Discussion
You sure can do that. I would have each file register the function itself and all you'd need to is require those files.
Disabling Turbo is the right solution for any oauth links that redirect externally.
Just re-assign it to the variant?
record.update(image: record.image.variant(...))
A flash message is set for the next full HTTP request. A turbo stream response is only a partial update to the existing page, so you would need to add a turbo stream to inject a flash message if you wanted to keep that.
You're welcome and thanks for watching! Hope it helps you solve problems in the future. 👍
Excellent! That stuff has always been poorly documented, so I'm glad we could help!
Glad you enjoyed it Michael! We will have to do more episodes like this. 💪
I get irrationally excited when I learn how Rails or other gems work internally. Love the feeling when something feels like a mystery and then you realize it's actually really straightforward when you see how it works. ❤️
I have done this in a few previous episodes (can't remember which ones) so you'll have to see if you can find those. We will definitely cover more stuff like this in the future!
Posted in Pass variable to Flash object
You can use html_safe on the notice message to allow them to include HTML.
redirect_to some_path, notice: "<div data-controller=\"autohide\">Some message</div>"
Glad you liked it Ahmed!
Glad you're enjoying it. We'll keep doing more Hotwire stuff!
They sure do and we will absolutely cover more ideas for them. Next episode is going to walk through using them to implement browser notifications. 👍
Yep! I think a Stimulus controller for remove probably makes the most sense, however this was a great example to show off a small custom Turbo Stream.
I just updated the Windows 10 and 11 guides.
You have to manually enable systemd right now, but you can start Postgres using:
sudo service postgresql start