The Action Text Building Block lets users add, edit, and view Rich Text. You’ll be able to build awesome products like:
A blog application with a fully functional text editor.
A note taking app where users can add lists and images.
A forum for a community where members add, edit, and vote on posts.
Some background on your tools
Action Text is a new feature in Rails 6 that makes it easy to add rich text content to your applications. Utilizing Active Storage, it takes care of all the tricky parts in the background relating to formatting text and storing attachments.
Trix Text Editor
Trix is the open-source rich text editor officially supported by Rails 6. Within the editor, users can format text, add bulleted lists, and attach files.
And it’s super easy to install and add some light customizations. So let’s get to it!
We’ll be adding a rich text field to a basic blogging app built on Rails version 184.108.40.206.
All I’ve done so far is generate a scaffold for a Post resource.