Liking Posts With Hotwire in Ruby on Rails

  Рет қаралды 2,111

GoRails

GoRails

Күн бұрын

Пікірлер: 18
@anthonypetruzzi158
@anthonypetruzzi158 Жыл бұрын
This is PERFECT!!!! Refactoring older posts using modern methods is EXACTLY what we need!!!! 💓💓💞💞 With all the new stuff coming out with Rails, it's cool to see how we can Hotwire to enhance our apps
@GorailsTV
@GorailsTV Жыл бұрын
Glad you enjoyed it! We will be doing more!
@yeinercarvajalquina7727
@yeinercarvajalquina7727 Жыл бұрын
I love this, I follow you recently and I am excited with all the code here! Thanks a lot !!!
@unaitrecet5487
@unaitrecet5487 Жыл бұрын
Thanks a lot for the video! One question, I am struggling with the lack of access to current_user when I replace or update through turbo_stream, how come that you can use it in the like partial without an error?
@ernepazzo1212
@ernepazzo1212 Жыл бұрын
Excelente trabajo!!! Te estoy siguiendo Chris!!!
@kenroyreid3527
@kenroyreid3527 9 ай бұрын
Great coding man respect
@Mikevets
@Mikevets 8 ай бұрын
At, 13:00, where is the logic for updating post.like_count?
Жыл бұрын
I loved it. Just thought that it is a bit too fast, there are some things I do not understand yet. Do I get any sort of "learning path" to level up as a go rails monthly subscriber? I mean, probably no, right? Maybe I should Just go through the classes and use the comunity to ask questions?
@GorailsTV
@GorailsTV Жыл бұрын
Check out our learning path at gorails.com/path
@jl789nz
@jl789nz Жыл бұрын
I was having the same problem as you. I'd recommend going through the GoRails learning path, but also found that using resources outside of Go rails helpful too. I found things clicked more when I started relating the things I had learnt between different sources. I highly recommend Pragmatic Studios Rails course.
@RonDavisceo
@RonDavisceo Жыл бұрын
how do i turn the buttton into a heart?
@GorailsTV
@GorailsTV Жыл бұрын
Use an SVG icon
@ajaykathwate7595
@ajaykathwate7595 10 ай бұрын
Hey @@GorailsTV , Can you share the link of the video where you added likes to comment as well by making this reusable?
@dencam
@dencam Жыл бұрын
Much cleaner and faster🎉
@GorailsTV
@GorailsTV Жыл бұрын
Sooo much better!
@mikezogheib6304
@mikezogheib6304 5 ай бұрын
Hey, Cool Video. I really appreciated the tutorial and so on and I'm really greatful for this stuff. But the thing is when I try to display the integer value of likes that is stored then this returns: #. Why does it do that?
@GorailsTV
@GorailsTV 5 ай бұрын
You've got a set of database records in our variable, not a number. You'll want to add .count to have the database return the number of records instead of the actual records themselves.
@mikezogheib6304
@mikezogheib6304 5 ай бұрын
@@GorailsTV Yeah I fixed that, thanks. But now I ran into the issue that when I implement turbo stream in my update method that it says unknown format when I click the like button.(ActionController::UnknownFormat)
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 61 МЛН
Inline Editing with Turbo Frames in Rails
20:39
GoRails
Рет қаралды 14 М.
Hotwire Demystified - Jamie Gaskins
34:18
Ruby Central
Рет қаралды 11 М.
Simple Rails authentication
17:23
Rapid Ruby
Рет қаралды 1,4 М.
Ruby on Rails #50 ActiveRecord Enum - when and why to use enums?
22:24
Like button with Ruby on Rails
17:57
CJ Avilla (cjav_dev)
Рет қаралды 6 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 61 МЛН