Turbo Frame Pages in Ruby on Rails 7

Поділитися
Вставка
  • Опубліковано 8 лют 2025
  • Let's talk about turbo_frame.erb files and how these turbo frame "pages" can be used in Ruby on Rails 7.
    Checkout my course(s) at: learn.deanin.com
    Join this channel to help support these videos:
    / @deanin
    Follow me on social media:
    linktr.ee/deanin
    If you liked this video, please consider subscribing: t.co/RZ4EwP0F2a
    #Deanin #Software #Programming

КОМЕНТАРІ • 14

  • @Deanin
    @Deanin  Рік тому +12

    It's 3 AM here, this video went up way too late 😅
    I'm gonna go sleep before I work on tomorrow morning's video haha help me

  • @stpaquet
    @stpaquet Рік тому

    I agree. I am pretty inconsistent when it comes to using it. and I have both approach on the same app 😞 Nice tutorial, especially the part about rendering errors.

  • @misheruzinho
    @misheruzinho Рік тому +4

    Hi im having some trouble, upgraded from rails 6 to 7, added the turbo-rails to the gem file
    Im trying to follow your steps to create a simple proof of concept that the turbo is working on my project
    However when i get to the 5:38 timemark (using the same files) the create post button redirects me to /posts/id (show) instead of prependding the test message
    Is there a different install process for turbo when upgrading from rails 6 to 7

  • @smidwap
    @smidwap Рік тому +1

    Nice video! Curious, is there an advantage to wrapping the form in a turbo frame instead of just adding an id of "new-post" directly to the form tag?

  • @azizdevfull
    @azizdevfull Рік тому

    Thanks!

  • @borsodon7999
    @borsodon7999 11 місяців тому +1

    How to append more then one, I mean what if i have a table and I want to add a few new lines, then fill them and after save the form. How can i do that?

  • @ratsu1991
    @ratsu1991 Рік тому +1

    Love you video's but in this one, you don't have to define locals: {post: @post} in the controller. the new.turbo_stream.erb or the create.turbo_stream.erb, can be treated like a normal .html.erb file, so you can use instance variables directly in them. Keeps your controllers a bit clearer in my opinion.

    • @Deanin
      @Deanin  Рік тому

      Good to know! Thanks for letting me know 🙂

  • @bitwise2832
    @bitwise2832 Рік тому +3

    Been working in rails since 2005. This video seems rushed with an unclear objectve and use case.

    • @mateytech
      @mateytech 7 місяців тому

      Totally agree