Intro To Rich Comments In Rails 7 | Ruby on Rails for Beginners Part 3

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

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

  • @DevBishwasBh
    @DevBishwasBh 2 года назад +5

    The Rails 7 journey with you is going pretty awesome. Thanks again.

  • @dencam
    @dencam 2 года назад +6

    Always looking forward to these awesome videos.
    Thanks man!

    • @Deanin
      @Deanin  2 года назад +1

      Glad you're enjoying them! I appreciate the positive feedback 🙂

  • @jouzou3709
    @jouzou3709 2 года назад +6

    Keep going Dean, your tutorial is goods.

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

    Thank you Dean

  • @Liquidedbrains
    @Liquidedbrains 2 года назад +1

    Thank you!

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

    Amazing!

  • @ahmetaydn4416
    @ahmetaydn4416 Год назад +1

    danke!

  • @ddd2283
    @ddd2283 2 года назад +1

    good staff!

  • @JuanVqz
    @JuanVqz 2 года назад +3

    Hi! rails db:reset will run all three commands you did around here 0:44

    • @Deanin
      @Deanin  2 года назад +3

      One day I'll stop doing things the long way 😅
      Thanks, good tip!

    • @JuanVqz
      @JuanVqz 2 года назад +3

      @@Deanin in the other hand, it's okay because that way we can learn more rails commands

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

    Hey Dean, how is the Page not refreshing when we post a comment? Inspite of having a redirect? Really appreciate the help

  • @jh1463
    @jh1463 11 месяцев назад

    Is there anything more recent, the last checkin was 2 years ago

  • @cherukukishore3568
    @cherukukishore3568 2 года назад +5

    Hey Dean, You didn't take the body column in the comments model, right? but how is the body data stored? I'm not able to save the data actually

    • @Deanin
      @Deanin  2 года назад +3

      So when you do a "has_rich_text :body" in the model, that stores the body as an action text blob. The model then has a body column, which itself has a body that includes the text. This action text data is stored in the migrations that are generated from the "rails action_text:install" command I think.
      You should then be able to save it from the controller just like you normally would, unless I missed something.

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

    Just use the gem commontator

    • @merryn9000
      @merryn9000 2 года назад +1

      that wouldn't make much of a tutorial though, would it 😂

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

    I got a problem, the rich text editor is not showing up on the frontend. The form to write text does not appear, only the Reply button is showing. Everything else including the Reply button works tho. I think the problem is with this line?
    Edit: I have fixed all the issues and it was simply my rails application not installing all the necessary bundles correctly. Make sure all your gems are installed correctly

    • @letsgameco3514
      @letsgameco3514 2 года назад +1

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

      I have the same issue, I copied & paste the answer that ​ @letsgameco3514 gave, but still nothing, how did you fix it on your end? Or did you leave it?

    • @jhonnatasalencar4476
      @jhonnatasalencar4476 Год назад +1

      @@Stevesteacher just run this command on your terminal: rails assets:precompile
      then start your rails server with: rails s

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

    Hi, 11:15 a.m.
    It doesn't work for me. Did you use rails 7 here?

    • @letsgameco3514
      @letsgameco3514 2 года назад +1

    • @jhonnatasalencar4476
      @jhonnatasalencar4476 Год назад +1

      just run this command on your terminal: rails assets:precompile
      then start your rails server with: rails s