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.
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
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?
The Rails 7 journey with you is going pretty awesome. Thanks again.
Always looking forward to these awesome videos.
Thanks man!
Glad you're enjoying them! I appreciate the positive feedback 🙂
Keep going Dean, your tutorial is goods.
Thank you Dean
Thank you!
Amazing!
danke!
good staff!
Hi! rails db:reset will run all three commands you did around here 0:44
One day I'll stop doing things the long way 😅
Thanks, good tip!
@@Deanin in the other hand, it's okay because that way we can learn more rails commands
Hey Dean, how is the Page not refreshing when we post a comment? Inspite of having a redirect? Really appreciate the help
Is there anything more recent, the last checkin was 2 years ago
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
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.
Just use the gem commontator
that wouldn't make much of a tutorial though, would it 😂
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
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?
@@Stevesteacher just run this command on your terminal: rails assets:precompile
then start your rails server with: rails s
Hi, 11:15 a.m.
It doesn't work for me. Did you use rails 7 here?
just run this command on your terminal: rails assets:precompile
then start your rails server with: rails s