Rails

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น • 27

  • @ArturMatrenitskii
    @ArturMatrenitskii 2 หลายเดือนก่อน +1

    Thank you man. This is the most detailed guide for datatables implementation! These gems are really useful

  • @iamjustine1
    @iamjustine1 5 หลายเดือนก่อน +1

    This is so helpful! Thank you for sharing. Please continue your rails tutorials!

  • @keilmillerjr9701
    @keilmillerjr9701 ปีที่แล้ว

    Thank you for these tutorials. I like that you make mistakes in the video, and then resolve them. It helps others learn how to diagnose errors.

  • @tolaseadegbite1027
    @tolaseadegbite1027 2 หลายเดือนก่อน

    This became helpful to me today, thanks.

  • @frankrobinson1007
    @frankrobinson1007 2 หลายเดือนก่อน +1

    Thank you Yaroslavl, excellent tutorial. You are so quick, but luckily we can stop and start the video to catch up, unlike an in person tutorial! I am not able to figure out how the highlighting works, and that is a really neat feature. Is it embedded in Tailwind? That is the only part of your setup that I am not using.

    • @SupeRails
      @SupeRails  2 หลายเดือนก่อน

      @@frankrobinson1007
      using highlight:
      - docs apidock.com/rails/v6.1.7.7/ActionView/Helpers/TextHelper/highlight
      - good examples: boringrails.com/tips/rails-highlight-search-results

    • @SupeRails
      @SupeRails  2 หลายเดือนก่อน

      @@frankrobinson1007 & glad you liked it! 🤗

  • @ledockol
    @ledockol ปีที่แล้ว +2

    Як завжди - чудовий і дуже корисний матеріал!
    Ярослав, ти майстер своєї справи!
    Дякую.
    Прим. Якби була трохи складніша розмітка, може б запхнув би цю таблицю (разом із сортуванням, фільтрацією) у турбо фрейм щоб оновлювати тільки її контент.
    Слава Україні!

    • @SupeRails
      @SupeRails  ปีที่แล้ว +1

      turbo frames and complex markup problems? ok, in the next video!

    • @volodymyrshabaldas6349
      @volodymyrshabaldas6349 ปีที่แล้ว +1

      yep, it will be a greate tutorial.@@SupeRails
      In my case, I already use ransak, pagy, turbo stream and frame in tables (like you did tutrorials before th-cam.com/video/A9q6YwhLCyI/w-d-xo.html)
      But I have issues with sort_link, when I take filtered data.
      By the way, thanks a lot, and plz. continue your greate work

    • @SupeRails
      @SupeRails  ปีที่แล้ว

      @@volodymyrshabaldas6349 what kind of issues with sort link?

    • @volodymyrshabaldas6349
      @volodymyrshabaldas6349 ปีที่แล้ว

      It display turbo request in UI (views), when I tried to press sort link after filtered data @@SupeRails

    • @ledockol
      @ledockol ปีที่แล้ว

      @@volodymyrshabaldas6349
      If both turbo_request and turbo_stream are used within one action in the controller, it would be better to separate them to avoid complicating the logic of their interaction.
      In my opinion, it is better to have turbo_frame + broadcast or turbo_stream + broadcast. Although there are exceptions in real projects)

  • @alexax3888
    @alexax3888 6 หลายเดือนก่อน +1

    This is great content as always! Thank you

    • @SupeRails
      @SupeRails  4 หลายเดือนก่อน +1

      Thanks for watching!

  • @kalist8938
    @kalist8938 5 หลายเดือนก่อน +1

    Omg super useful gems and video, thanks a lot !

    • @SupeRails
      @SupeRails  5 หลายเดือนก่อน

      Glad it was helpful!

  • @guymcdonald7961
    @guymcdonald7961 6 หลายเดือนก่อน

    Love this. A great find! Subscribed 🎉

  • @robbieclutton
    @robbieclutton 9 หลายเดือนก่อน

    Exactly what I was looking for, thank you.

  • @PROXYOWL
    @PROXYOWL ปีที่แล้ว

    thanks sir for the tutorial it was really helpful

  • @YuriyChamkoriyski
    @YuriyChamkoriyski 11 หลายเดือนก่อน

    Thanks, Yaroslav! Your videos are always interesting and useful! I have one question, though. When you do the sort, the gem makes it very easy, and when you click on the column's title it sorts the column right away. My question is, once I load the page how can I have some kind of default sorting already executed, without clicking on any particular column's title? So, the table should have some initial sort (let's say by first_name: DSC) and then the user could change it by clicking on the different column's title.

    • @SupeRails
      @SupeRails  11 หลายเดือนก่อน +1

      if you are using ransack, the best way to set default sort order is with "@q.sorts".
      Example:
      @q = Event.where(visible: true).ransack(params[:q])
      @q.sorts = "name asc" if @q.sorts.empty?
      @events = @q.result(distinct: true)

    • @SupeRails
      @SupeRails  11 หลายเดือนก่อน +1

      without ransack:
      @events = Event.all.order(created_at: :desc)

  • @ricardomordaunt1101
    @ricardomordaunt1101 ปีที่แล้ว +1

    Thank you

  • @developerfoe
    @developerfoe ปีที่แล้ว

    there is rsome issue of ransack with rails 7.1 , don't know how much time will it take to be compatible with rails 7.1

    • @SupeRails
      @SupeRails  ปีที่แล้ว

      actually for this tutorial I am using rails 7.1 - seems to work!

  • @SupeRails
    @SupeRails  ปีที่แล้ว

    Gem Ransack: github.com/activerecord-hackery/ransack