Rails Tutorial | Using View Components to Create Reusable Views in Ruby on Rails - Part 3

preview_player
Показать описание
Rails view components make it much easier to create reusable view code in a Ruby on Rails application.

In this Rails tutorial, we'll use the view_components gem from Github to build reusable view objects.

👊 Helpful Links 👊

Free E-book:

✨Other Techmaker Series ✨

Рекомендации по теме
Комментарии
Автор

Thanks! And I would like to know about testing the Components, if it possible :-)

АллаМассорова
Автор

WOW, a lot of changes in this episode, great episode. I want to see how reuse the badge_color method in the future. Saludos.

stanmx
Автор

Hi, and first things first : thanks a lot for that great tutorial. I noticed that some times after drag and dropping several times Task components (<li class="newsletter-item" ..) you can't click on the last "status button" in that <li> (the dropdown menu is not dropping). But maybe it's just me messing some thing ahah . Thank you again

pololprolo
Автор

Looks really helpful. Only thing is if you are delegating to the model why don't you use delegate ??

btrewern
Автор

Nice. do you know how we can add the functionality that the user can edit the status name? for instance he/she wants to add the other words like done, and todo instead of from the model? thanks this help a lot in our project.

RyanJeffB