1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actiontext
George Claghorn ff7948b1c2 Avoid creating ActionText::RichText records unnecessarily
Assigning a has_one association for a persisted record saves the change immediately, so attempting to read a rich-text attribute on a persisted record without a corresponding ActionText::RichText would eagerly create one. Avoid assigning the rich text association to fix.
2019-03-23 10:04:48 -04:00
..
app Explicitly require rails-html-sanitizer gem in ActionText helpers 2019-03-06 17:32:03 -08:00
bin
db/migrate
lib Avoid creating ActionText::RichText records unnecessarily 2019-03-23 10:04:48 -04:00
test Avoid creating ActionText::RichText records unnecessarily 2019-03-23 10:04:48 -04:00
.gitignore
actiontext.gemspec
CHANGELOG.md Prep release 2019-03-11 11:58:15 -04:00
MIT-LICENSE
package.json Prep release 2019-03-11 11:58:15 -04:00
Rakefile
README.md

Action Text

Action Text brings rich text content and editing to Rails. It includes the Trix editor that handles everything from formatting to links to quotes to lists to embedded images and galleries. The rich text content generated by the Trix editor is saved in its own RichText model that's associated with any existing Active Record model in the application. Any embedded images (or other attachments) are automatically stored using Active Storage and associated with the included RichText model.

You can read more about Action Text in the Action Text Overview guide.

License

Action Text is released under the MIT License.