How to use Hotwire in Rails

  Рет қаралды 53,707

GoRails

GoRails

3 жыл бұрын

► Check out gorails.com for Pro episodes and more!
► SaaS business template for Ruby on Rails with built-in features like Payments, Teams, and much more: jumpstartrails.com
► Ruby on Rails hosting with Hatchbox.io: hatchbox.io
► Learn how to add Stripe Payments (with SCA support!) with Ruby on Rails: courses.gorails.com/payments-...

Пікірлер: 61
@bernarduslopez7074
@bernarduslopez7074 3 жыл бұрын
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 2 жыл бұрын
@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 Жыл бұрын
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?
@joey2545
@joey2545 3 жыл бұрын
Very cool. Looking to dig into this more and hoping to see more videos from you about this new magic!
@PizzaManNick
@PizzaManNick 3 жыл бұрын
This is fantastic, thank you so much for teaching us!
@Alx91xd
@Alx91xd 2 жыл бұрын
Thanks for the video, now it looks much clear for me! Love these kind of magic stuff :)
@MalachiRails
@MalachiRails 4 ай бұрын
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 4 ай бұрын
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 3 жыл бұрын
Thanks a lot for this video, please your help with more about this new approach.
@sriramv6701
@sriramv6701 2 жыл бұрын
This is fascinating and almost feels like magic!!
@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
@johncerpa3782
@johncerpa3782 3 жыл бұрын
Pretty cool feature, nice video
@RoshanTamilsellvan
@RoshanTamilsellvan 3 жыл бұрын
Pretty fascinating!
@vidurpunj
@vidurpunj 7 ай бұрын
@chris thanks for sharing.
@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?
@Ericelrojo32
@Ericelrojo32 3 жыл бұрын
Which color theme do you use in your terminal and vim? I really like it
@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.
@datamakingsoftwaresolution4461
@datamakingsoftwaresolution4461 2 жыл бұрын
Nice one!
@andreseduardo5991
@andreseduardo5991 Жыл бұрын
15:54 Edit tweets is real now
@IvanRaszl
@IvanRaszl 3 жыл бұрын
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?
@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
@petersimondiesta9764
@petersimondiesta9764 3 жыл бұрын
Hi what is the difference of stimulus reflex and hotwire?
@andarba2148
@andarba2148 3 жыл бұрын
I can’t find after_create_commit { broadcast_append_to ´´model’´ } in the documentation. Does anyone know where I can find it.
@DevBishwasBh
@DevBishwasBh Жыл бұрын
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 Жыл бұрын
You cant access the request in a model.
@DevBishwasBh
@DevBishwasBh Жыл бұрын
@@GorailsTV I mean, is there anyway I can access it inside my partial after using `after_save_commit`
@fernandomarques281
@fernandomarques281 Жыл бұрын
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 2 ай бұрын
I have it too, did you find a solution?
@vishalsinghrathore7670
@vishalsinghrathore7670 3 ай бұрын
can you please give us you code file so we can see that where we. are wrong
@chrishabgood8900
@chrishabgood8900 7 ай бұрын
man, many years ago, I has to figure out how to update the front end from a back end change. AHHHHH
@josephandres4324
@josephandres4324 3 жыл бұрын
is Hotwire the Stimulus Reflex killer?
@micharosiak7482
@micharosiak7482 2 жыл бұрын
How it works with SEO?
@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
@Qasibr
@Qasibr 2 жыл бұрын
I wonder if this works with Rails 7.
@GorailsTV
@GorailsTV 2 жыл бұрын
Rails 7 comes with Hotwire by default. 👍
@weefunkster
@weefunkster 3 жыл бұрын
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 3 жыл бұрын
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.
@programmingcheatsheet
@programmingcheatsheet Жыл бұрын
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 М.
How to use Solid Queue in Ruby on Rails
13:24
GoRails
Рет қаралды 5 М.
НЕОБЫЧНЫЙ ЛЕДЕНЕЦ
00:49
Sveta Sollar
Рет қаралды 9 МЛН
OMG 😨 Era o tênis dela 🤬
00:19
Polar em português
Рет қаралды 6 МЛН
[Vowel]물고기는 물에서 살아야 해🐟🤣Fish have to live in the water #funny
00:53
Dynamic Select Fields in Rails using Hotwire
19:46
GoRails
Рет қаралды 23 М.
How to use ESBuild with JS Bundling in Rails
15:07
GoRails
Рет қаралды 14 М.
Turbo Frames vs. Turbo Streams
8:25
Mix & Go
Рет қаралды 16 М.
What is Hotwire?
6:55
The Pragmatic Studio
Рет қаралды 9 М.
Introduction to Hotwire in Ruby on Rails
10:17
Mix & Go
Рет қаралды 19 М.
Should you use Ruby on Rails in 2024?
14:43
webcrunch
Рет қаралды 9 М.
Docker Basics for Ruby on Rails Developers
13:27
GoRails
Рет қаралды 26 М.
Inline Editing with Turbo Frames in Rails
20:39
GoRails
Рет қаралды 13 М.
RailsConf 2023 - Hotwiring My React Brain by Aji Slater
32:12
Ruby Central
Рет қаралды 2,7 М.
Xiaomi Note 13 Pro по безумной цене в России
0:43
Простые Технологии
Рет қаралды 1,8 МЛН
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Рет қаралды 1,6 МЛН
3D printed Nintendo Switch Game Carousel
0:14
Bambu Lab
Рет қаралды 4,3 МЛН
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43
Дени против умной колонки😁
0:40
Deni & Mani
Рет қаралды 6 МЛН