Real-Time Page Updates With Hotwire in Just 5 Minutes

Поделиться
HTML-код
  • Опубликовано: 26 дек 2024

Комментарии • 19

  • @lorenzozuluaga4309
    @lorenzozuluaga4309 2 года назад

    Definitely one of the best explanations I've found, you got a new subscriber!

  • @muronuck
    @muronuck 2 года назад

    Another great video! These have been so helpful, excited for your course 👍🏻

    • @mixandgo
      @mixandgo  2 года назад

      Happy to hear that :)

  • @Deanin
    @Deanin 2 года назад

    Helpful as always! Also explained why the broadcasts were blocking for me haha. Appreciate it!

  • @AngelPadillam
    @AngelPadillam Год назад

    I had a issue in the user.rb raising *undefined method `dom_id'* after updating an user, I just had to manually set the *broadcast_replace_later_to "users_list", target: "#{dom_id self.id}_row"* to broadcast_replace_later_to "users_list", target: "user_#{self.id}_row". And with that it works, thanks for the video.

  • @haroldpepete
    @haroldpepete 2 года назад

    great video, thanks

  • @al-mokhtar_
    @al-mokhtar_ 2 года назад

    love it thank you !

    • @mixandgo
      @mixandgo  2 года назад

      Glad to hear that :) Thank you.

  • @xaogao
    @xaogao 2 года назад

    thx

  • @dmitriyobidin6049
    @dmitriyobidin6049 2 года назад

    What if we have different pages where we need to display status in different format. On one page it's table of users, on another it's card, etc. Would that naming convention "dom_id user"_row make sense if we don't have rows in every page/template that should be updated?

    • @mixandgo
      @mixandgo  2 года назад

      The only condition is for it to be unique on the page. You can name it however you want.

  • @al-mokhtar_
    @al-mokhtar_ 2 года назад

    can you do it maybe later with anycable ?

    • @mixandgo
      @mixandgo  2 года назад

      Maybe, I don't know. What are you using it for?

    • @al-mokhtar_
      @al-mokhtar_ 2 года назад

      @@mixandgo anycable they said more efficient than actioncable for large apps 🤭if you got time to replace actioncable by anycable and use it instead for this app will be great tuto, you know just saying 🤗

  • @acemav
    @acemav 2 года назад

    I don't learn anything from this video.

    • @mixandgo
      @mixandgo  2 года назад

      I'm sorry to hear that. What seems to be the confusion?

    • @dexternepo
      @dexternepo 2 года назад

      This is just a show case of a feature that is available and not an in-depth tutorial.