Intro To View Components In Ruby On Rails 7

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

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

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

    @Deanin super appreciate all you do for the community! Small correction due to changing libs... as of 2.67.0 you no longer need to include ViewComponent::RenderPreviewHelper...
    2.67.0
    Use ViewComponent::Base.config as the internal endpoint for config.
    Simon Fish
    Fix bug where #with_request_url, when used with query string, set the incorrect request.path and request.fullpath.
    Franz Liedke
    Add link to ViewComponentAttributes in Resources section of docs.
    Romaric Pascal
    render_preview test helper is available by default. It is no longer necessary to include ViewComponent::RenderPreviewHelper.
    Joel Hawksley

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

    I am back to rails after 10 years. Had some time with ruby and sinatra years ago. Now i'm doing a rails course on udemy and i like how rails developed from the good to the better. It's not the hyped thing anymore but it is a very well designed and documented tool that i really love to get to know again.

  • @tomasvalent3876
    @tomasvalent3876 ปีที่แล้ว +6

    View Components Rails + Tailwindcss == ❤❤❤

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

      @@tomasvalent3876 totally!!!!!!

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

      Is totally awesome!!!!

  • @davidcordero9864
    @davidcordero9864 2 ปีที่แล้ว

    I liked this tutorial. Looking forward to more!!

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

    Thanks, good jobs

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

    thank you for the tutorial

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

    thanks deanin! can you make a tutorails on invoices or reports to pdf?

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

      I'll take a look at it! I think there was a gem that could handle it, but I'm not sure. I'll definitely take a look though.

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

    Nice Video

    • @Deanin
      @Deanin  2 ปีที่แล้ว

      Thank you!

  • @TheNorbdus
    @TheNorbdus 2 ปีที่แล้ว

    Hi @Deanin, great video. I need to componentize buttons with JS tooltips, but I need to reload them after rendering. Can I put the js inside the component? I'm using rails 7 with stimulus. I appreciate the help.

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

    thx for the video

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

    The last part of video when u use "include ViewComponent::RenderPreviewHelper" doesn't work in Rails 7.1.0 - Ruby 3.1.0 - gem "view_component", "~> 3.6".
    Error:
    /RailsLearning/rails-learning/test/components/post_component_test.rb:6:in `': uninitialized constant ViewComponent::RenderPreviewHelper (NameError)
    ViewComponent 2.67.0 says:
    "render_preview test helper is available by default. It is no longer necessary to include ViewComponent::RenderPreviewHelper." - Joel Hawksley.
    Thanks! Good video tutorial about View Component in Ruby on Rails!

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

    Thank u! If you have any ideas on working with cryptocurrency, just payments aka wallet/bank app, transactions would also be very interesting!

  • @tonypetruzzi9266
    @tonypetruzzi9266 2 ปีที่แล้ว

    i think you glance over the fact that you need to add `gem "view_component"` to your Gemfile.