Turbo Frame Pages in Ruby on Rails 7

Поделиться
HTML-код

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

  • @Deanin
    @Deanin  Год назад +10

    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

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

    Thanks!

  • @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.

  • @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?

  • @borsodon7999
    @borsodon7999 4 месяца назад

    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?

  • @misheruzinho
    @misheruzinho Год назад +2

    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

    • @fedorzajac9756
      @fedorzajac9756 9 месяцев назад

      i have the same issue...

    • @tomdringer985
      @tomdringer985 6 месяцев назад

      @@fedorzajac9756 Yep and me. Did you ever find a fix?

  • @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 7 месяцев назад +2

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