Rails helpers: How to use them right

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 7

  • @samgomez1460
    @samgomez1460 2 года назад

    Wonderful video Alberto, it was super helpful! 🙂

    • @alberto_almagro
      @alberto_almagro  2 года назад

      Thank you for your kind words Sam! I'm very happy to know that it helped you 🙏

  • @rickbacker1
    @rickbacker1 Год назад

    Thank you for your video, it was helpful!

  • @bishoy437
    @bishoy437 8 месяцев назад

    What do you think of view_components vs helpers

  • @corentindiard3544
    @corentindiard3544 2 года назад

    Hello, Just a question for the PostHelper example. Used a decorator method would be better for this example no ?

    • @alberto_almagro
      @alberto_almagro  2 года назад +2

      Hello Corentin! Thank you for watching and commenting! 🙏 You could use decorators (like presenters) but I honestly think a helper is better than the decorator in this example since this is all display logic which is one of the use cases of Rails helpers.