How to use Hotwire in Rails

  Рет қаралды 56,913

GoRails

GoRails

Күн бұрын

Пікірлер
@bernarduslopez7074
@bernarduslopez7074 4 жыл бұрын
Another prove that rumors about Ruby is dying are not true. Ruby & Rails are safe and sound. In fact, they get improve and faster.
@AmitSavani
@AmitSavani 3 жыл бұрын
As long as DHH is actively using Rails, no change that Ruby can die.
@ranska2506
@ranska2506 3 жыл бұрын
Well say Mr !!! Using it since 2006 every year I hear the same music, every year rails just get better. And more than everything still happy to use it \(♥_♥)/
@ZolzayaErdenebaatar
@ZolzayaErdenebaatar 3 жыл бұрын
And laravel copying ideas from Rails
@dannykorbyn8361
@dannykorbyn8361 3 жыл бұрын
@Baylor Jaxton Yea, been using InstaFlixxer for years myself :)
@erickzelaya3651
@erickzelaya3651 2 жыл бұрын
This Is just mind blowing. I'm new to Ruby on rails but I'm loving everything I saw until now. Thanks Chris
@DevBishwasBh
@DevBishwasBh 2 жыл бұрын
I am also planning to learn Ruby on rails. Shifting from Python/Js webdev backgraound.
@redlightmikey
@redlightmikey 2 жыл бұрын
This. Just. Blew. My. Mind. I've been on Rails 4.2.4 for so long and just upgrading. Wow. Can't wait to use this.
@GorailsTV
@GorailsTV 2 жыл бұрын
I know right?! One of the coolest things to happen to web development in a long time.
@redlightmikey
@redlightmikey 2 жыл бұрын
@@GorailsTV do you have a video or example on how this could make load times faster? I have a scenario where I’m loading 1000s of records and it takes like 10 seconds to load the page - could this help?
@MalachiRails
@MalachiRails 11 ай бұрын
Hey man just want to say I love your videos and am Inspired by them! Thanks and keep up the fantastic work!. IN my next course im gonna try out Hatchbox to host the Rails app!
@GorailsTV
@GorailsTV 11 ай бұрын
So happy to hear that! If you have any trouble with Hatchbox you know where to find me!
@eonacademy5036
@eonacademy5036 2 жыл бұрын
We love you Chris! 😺greetings from Mexico 😺🇲🇽
@satreuh82
@satreuh82 4 жыл бұрын
Thanks a lot for this video, please your help with more about this new approach.
@whyimustusemyrealname3801
@whyimustusemyrealname3801 3 жыл бұрын
18:20 when the turbo engine started
@quiettalha
@quiettalha 3 жыл бұрын
I guess it his MacBook's fan kicking in :D He likes old macs rather than the newer ones maybe :O
@Alx91xd
@Alx91xd 3 жыл бұрын
Thanks for the video, now it looks much clear for me! Love these kind of magic stuff :)
@fernandomarques281
@fernandomarques281 2 жыл бұрын
Question: I'm stuck on minute 4:44. For some reason, while I can see the [ActionCable] Broadcasting to tweets, and everything is identical to what he is doing, my page does not get updated. My redis is set up, everything is set up! Did anyone go through this?
@Khoadzai
@Khoadzai 9 ай бұрын
I have it too, did you find a solution?
@joey2545
@joey2545 4 жыл бұрын
Very cool. Looking to dig into this more and hoping to see more videos from you about this new magic!
@PizzaManNick
@PizzaManNick 4 жыл бұрын
This is fantastic, thank you so much for teaching us!
@Ericelrojo32
@Ericelrojo32 3 жыл бұрын
Which color theme do you use in your terminal and vim? I really like it
@sriramv6701
@sriramv6701 3 жыл бұрын
This is fascinating and almost feels like magic!!
@yzhang2008
@yzhang2008 Жыл бұрын
Ruby is the most pretty and graceful programming language. Rails is the best show off of Ruby. It was, it is ,and I’ll be.
@petersimondiesta9764
@petersimondiesta9764 3 жыл бұрын
Hi what is the difference of stimulus reflex and hotwire?
@axelb423
@axelb423 3 жыл бұрын
Hello, thanks for this awesome tutorial. I have a question, with turbo frame, the url doesn't change, an option is available or not for handle url for a good SEO?
@DevBishwasBh
@DevBishwasBh 2 жыл бұрын
Thanks a lot, it was extremely helpful. But how can I get `request.remote_ip` inside the element after using after_save_commit.
@GorailsTV
@GorailsTV 2 жыл бұрын
You cant access the request in a model.
@DevBishwasBh
@DevBishwasBh 2 жыл бұрын
@@GorailsTV I mean, is there anyway I can access it inside my partial after using `after_save_commit`
@Darkhumorshort1
@Darkhumorshort1 10 ай бұрын
can you please give us you code file so we can see that where we. are wrong
@andarba2148
@andarba2148 4 жыл бұрын
I can’t find after_create_commit { broadcast_append_to ´´model’´ } in the documentation. Does anyone know where I can find it.
@navnath8580
@navnath8580 3 жыл бұрын
Do u upload this repo anywhere or just show it here?? Your videos are so great I love them
@GorailsTV
@GorailsTV 3 жыл бұрын
github.com/gorails-screencasts
@johncerpa3782
@johncerpa3782 4 жыл бұрын
Pretty cool feature, nice video
@IvanRaszl
@IvanRaszl 4 жыл бұрын
As I understand, the benefit of html over wire is that for example when you increment Likes you could reach out to the database very quickly if needed to implement some sort of business logic in the backend before updating the html in the user's browser, right? For example, we could limit the number of likes a user can give per 24h. Can you confirm this is correct?
@RoshanTamilsellvan
@RoshanTamilsellvan 4 жыл бұрын
Pretty fascinating!
@micharosiak7482
@micharosiak7482 3 жыл бұрын
How it works with SEO?
@vidurpunj
@vidurpunj Жыл бұрын
@chris thanks for sharing.
@josephandres4324
@josephandres4324 3 жыл бұрын
is Hotwire the Stimulus Reflex killer?
@chrishabgood8900
@chrishabgood8900 Жыл бұрын
man, many years ago, I has to figure out how to update the front end from a back end change. AHHHHH
@andreseduardo5991
@andreseduardo5991 2 жыл бұрын
15:54 Edit tweets is real now
@datamakingsoftwaresolution4461
@datamakingsoftwaresolution4461 2 жыл бұрын
Nice one!
@Qasibr
@Qasibr 3 жыл бұрын
I wonder if this works with Rails 7.
@GorailsTV
@GorailsTV 3 жыл бұрын
Rails 7 comes with Hotwire by default. 👍
@weefunkster
@weefunkster 4 жыл бұрын
This completely breaks jumpstart pro for me, Chris ``` Module not found: Error: Can't resolve 'turbolinks' in '...javascript/packs' ``` Fixed by commenting out turbolinks from all of the js pack files, removing the gem and removing the turbolinks function from devise.rb at the bottom Just hope it doesn't create a hive of bugs
@GorailsTV
@GorailsTV 4 жыл бұрын
Hotwire replaced Turbolinks do you have to remove it. We'll upgrade Jumpstart Pro shortly now that they've fixed a few bugs in Hotwire. 👍
@WinstonCodesOn
@WinstonCodesOn 3 жыл бұрын
That seems a bit model heavy. Fine for this simplistic case, but for more complex applications I would try to encapsulate those broadcast events out of the model and into a more business-logic oriented layer like an interactor. I wonder how you would do this if on that invalid tweet response, rather than replacing the form you display the validation errors on a more uniform part of the page like a floating stationary div. Or maybe you'd want multiple page elements to be affected. Would it take some sort of stimulus JS handler to achieve that?
@GorailsTV
@GorailsTV 3 жыл бұрын
Just include broadcastable in whatever class you want.
@rahulk6130
@rahulk6130 Жыл бұрын
I take it this uses rails 6 since 7 does not accept the “Hotwire:install” command. Very Nice video.
@GorailsTV
@GorailsTV Жыл бұрын
Yes, correct
@programmingcheatsheet
@programmingcheatsheet 2 жыл бұрын
I'd greatly appreciate if you could actually do practical SPA application that covers beginning to end setup, similar to your rails for beginners tutorial which was fantastic, but is now outdated in many ways. My biggest frustration with this video is you just magically have your index.html.erb set up in a way that it's coherent with the code you're writing, but when I run "rails g scaffold Tweet" I do not get the same index.html.erb you have with a form and render tweets. The minute I try to change that context to anything else, everything goes haywire because rails just makes a lot of assumptions about the names people are going to use and code that people are going to write
@kennelmask1
@kennelmask1 2 жыл бұрын
So is this still relevant at all, now that Hotwire is depracated?
@GorailsTV
@GorailsTV 2 жыл бұрын
Hotwire is not deprecated
How to use Devise with Hotwire & Turbo.js
11:54
GoRails
Рет қаралды 17 М.
Dynamic Select Fields in Rails using Hotwire
19:46
GoRails
Рет қаралды 25 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,6 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 544 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 30 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
How To Use Import Maps with Rails
18:12
GoRails
Рет қаралды 1,9 М.
Realtime partial page updates with Turbo Streams
22:33
CJ Avilla (cjav_dev)
Рет қаралды 9 М.
Hotwire: The Demo
12:55
Getting Real
Рет қаралды 38 М.
Reviewing Your Pull Requests
1:39:37
Tsoding Daily
Рет қаралды 28 М.
Liking Posts With Hotwire in Ruby on Rails
25:21
GoRails
Рет қаралды 2,1 М.
How to use ESBuild with JS Bundling in Rails
15:07
GoRails
Рет қаралды 15 М.
Inline Editing with Turbo Frames in Rails
20:39
GoRails
Рет қаралды 14 М.
The Unreasonable Effectiveness Of Plain Text
14:37
No Boilerplate
Рет қаралды 618 М.
Is ViewComponent the Future of Rails?
12:25
Mix & Go
Рет қаралды 8 М.
Introduction to Hotwire in Ruby on Rails
10:17
Mix & Go
Рет қаралды 22 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,6 МЛН