@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
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.
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.
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!
@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
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.
View Components Rails + Tailwindcss == ❤❤❤
@@tomasvalent3876 totally!!!!!!
Is totally awesome!!!!
I liked this tutorial. Looking forward to more!!
Thanks, good jobs
thank you for the tutorial
thanks deanin! can you make a tutorails on invoices or reports to pdf?
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.
Nice Video
Thank you!
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.
thx for the video
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!
Thank u! If you have any ideas on working with cryptocurrency, just payments aka wallet/bank app, transactions would also be very interesting!
i think you glance over the fact that you need to add `gem "view_component"` to your Gemfile.
bundle add view_component