Episode

Поділитися
Вставка
  • Опубліковано 15 жов 2024
  • In this episode, we look at creating an unobtrusive and efficient way to launch Bootstrap modals using Turbo and Stimulus. www.driftingru...
    This episode is sponsored by Hook Relay
    ► Visit the Merchandise Store - www.railsstore...
    ► Ruby on Rails Templates - www.rubidium.io
    ► Subscribe to Drifting Ruby at www.driftingru...

КОМЕНТАРІ • 15

  • @repoles
    @repoles 2 роки тому

    Fantastic ideas! Thank you very much!
    Hotwire and Turbo is really an amazing tool! You just have to change your mindset to work properly with it.

  • @devinlounge
    @devinlounge 2 роки тому +4

    This episode have some errors and isn't using import maps

  • @prasea7
    @prasea7 3 місяці тому

    If your validation error message is being shown on .html.erb instead of remote_modal, update your controller's create and update action method.

  • @med3vall
    @med3vall 2 роки тому

    Thanks great episode

  • @chandanjachpure5562
    @chandanjachpure5562 2 роки тому

    Hi its very useful but, what about multiple modal open with different fields?

  • @mikopiko
    @mikopiko 2 роки тому

    That's really powerful, but my I ask?
    How was it possible for Rails to add the error message at 15:42 just by you adding the validates method in the Project modal? Didn't you add anything in the view?

    • @saqibhabib4678
      @saqibhabib4678 2 роки тому

      same question!

    • @mikopiko
      @mikopiko 2 роки тому

      @@saqibhabib4678 I think the errors comes with the scaffold.

    • @saqibhabib4678
      @saqibhabib4678 2 роки тому

      @@mikopiko yup ..

    • @mooktakim
      @mooktakim 2 роки тому +1

      the form builder shows the errors on page if there is any

    • @mikopiko
      @mikopiko 2 роки тому

      @@mooktakim Thanks

  • @RatanachaiS
    @RatanachaiS Рік тому

    Why do we need target: :_top ?

  • @juanicolas84
    @juanicolas84 2 роки тому +2

    at 6:34 should be "r => r.text()" not "t.text()" right?

    • @juanicolas84
      @juanicolas84 2 роки тому

      The answer is yes, you can see it corrected in 12:50

    • @AbdulHannan-sj2xi
      @AbdulHannan-sj2xi Рік тому

      @@juanicolas84 thanks bro you are life saver