action-text

Implement and manage rich text content in Ruby on Rails with Action Text.

5|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/ThinkOodle/rails-skills --skill action-text-thinkoodle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: action-text
Source: https://github.com/ThinkOodle/rails-skills/tree/main/skills/action-text
Command: npx skills add https://github.com/ThinkOodle/rails-skills --skill action-text-thinkoodle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance for implementing rich text editing in Rails applications, allowing users to create and format content with ease.

Core Features & Use Cases

  • Rich Text Fields: Add dynamic rich text content to your models.
  • Editor Integration: Supports Lexxy (Rails 8.1+) and Trix (Rails 6-8.0) editors.
  • Attachment Handling: Seamlessly integrates with Active Storage for file and image uploads within the editor.
  • Custom Embeds: Allows embedding custom Active Record models into rich text content.
  • Use Case: Enabling users to write blog posts with formatted text, embedded images, and custom user mentions.

Quick Start

Install Action Text by running bin/rails action_text:install and then bin/rails db:migrate.

Frequently Asked Questions about action-text

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add rich text editing to my Rails application?

To add rich text editing to your Rails application, install Action Text by running `bin/rails action_text:install` and then execute `bin/rails db:migrate` to set up the database tables.

How do I integrate Active Storage for file uploads within the rich text editor?

Active Storage integrates with Action Text to handle file and image uploads within the rich text editor. This allows users to seamlessly embed attachments directly into their formatted content.

Does Action Text support both Trix and Lexxy editors?

Action Text supports Lexxy for Rails 8.1+ and Trix for Rails 6 through 8.0. You can configure either rich text editor depending on your application's framework version.

How do I embed custom Active Record models into rich text content?

You can embed custom Active Record models into rich text content using custom attachable objects. This enables features like user mentions or specialized data embeds within the editor.

How do I prevent N+1 queries when rendering Action Text content?

Action Text provides specific strategies to prevent N+1 queries when rendering rich text content. Properly loading rich text associations ensures your application queries efficiently without repeated database hits.

How do I securely render and style Action Text rich text fields?

Action Text includes security considerations and styling options for both the editor interface and rendered content. You can apply custom CSS to the rich text fields while maintaining safe content rendering protocols.