action-text

Installation
SKILL.md

Rails Action Text Expert

Implement rich text editing in Rails applications using Action Text with the Lexxy editor (Rails 8.1+) or Trix (Rails 6-8.0).

Key Concepts

Action Text stores rich text in a separate action_text_rich_texts table via polymorphic associations — not in your model's table. It handles sanitization, rendering, attachments (via Active Storage), and embedded objects (via Signed GlobalIDs).

Editor History:

  • Trix — Original Action Text editor (Rails 6+). Still works, still supported.
  • Lexxy — Modern replacement from Basecamp (Rails 8.1+). Better dark mode, CSS custom properties, improved UX. Use Lexxy for new projects.

When To Use This Skill

  • Adding rich text fields to a model
  • Setting up Action Text in a new or existing Rails app
  • Configuring Lexxy or Trix editor appearance
  • Rendering rich text content safely
  • Handling image/file attachments in rich text
Related skills

More from thinkoodle/rails-skills

Installs
4
GitHub Stars
4
First Seen
12 days ago