Ruby on Rails #65 Hotwire SPA: Flash Messages

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

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

  • @NinjaBranDizzzle
    @NinjaBranDizzzle Год назад +1

    Wonderful tutorial, thank you so much for your knowledge and time that you put into these videos

  • @Gadetto
    @Gadetto 8 месяцев назад

    As always. Good stuff from SupeRails!

  • @zdebyman8100
    @zdebyman8100 2 года назад +1

    Окреме велике дякую за те, що коміти розділені між сетапом і самою фічою. супер зручно

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

    Thank you yaroslav, and i pray for you, may God help you and your family to stay safe

  • @dixpac
    @dixpac 2 года назад +1

    I like your channel. It is super useful. You address common turbo issues folks bump into when they start building real world apps 👍

  • @pedro.lizarraga
    @pedro.lizarraga 2 года назад

    Thank you for continuing posting this kind of short tutorial they are very useful, I'm your student on Udemy and these tutorials complement the knowledge, Thank you

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

    Great video - easy to follow - nice work!!

  • @watek16
    @watek16 2 года назад +2

    omg ! I didn’t know about multi turbo stream renders. I thought I can respond with one partial render. It will change everything in my app :D thx

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

      But an even better approach would be to render a turbo_stream template. You can respond to a controller action with format.turbo_stream and have something like "app/views/posts/create.turbo_stream.erb" and inside you can place as much turbo stream content as you wish. Also you can add blocks of html into a stream that way

    • @maacharya
      @maacharya 2 года назад +1

      @@SupeRails Where do I find well-explained documentation for such tips and tricks regarding hotwire?

    • @SupeRails
      @SupeRails  2 года назад +1

      @@maacharya either the source code for turbo-rails itself, or on blog.corsego.com ;)

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

    SUPER!!!!

  • @johnrothfield6126
    @johnrothfield6126 2 года назад +1

    Thanks! I was wondering why you didn't use turbo-frame for the "new" div. Is it because you are updating a flash message in a different part of the screen, which would require multiple updates? I've heard it said that you can't respond with multiple turbo-FRAMES... Reminder , In git commit -m the "m" is "message" not "main".

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

      Regarding Turbo Frames - That's a good question. We could potentially use FRAMES to handle the form (creating records; rendering errors; re-rendering form), while STREAMS would render flash messages and add a new record to the list.

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

      @@SupeRails In this case I think turbo frames are the only option since you want to update multiple non-contiguous divs. I'm trying to go through your tutorials very thoroughly ("with a fine-tooth comb")

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

    hello would you make a example for dropdown/selection with searchbox? like react-select

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

      In this episode we add Tom-select to a Rails app ruclips.net/video/dB5Fw1lftHU/видео.html
      Text version: blog.corsego.com/select-or-create-with-tom-select

  • @ledockol
    @ledockol 2 года назад +1

    Дякую!