Save 36% for Black Friday! Save 36% on GoRails for Black Friday! Learn more →
How to build a complete, real-world application from scratch with Ruby on Rails step by step.
A lot of Ruby code is "magic". We'll explain the magic and see how it works using the powerful tools Ruby gives us.
Accept subscription and one-time payments with Stripe in your Rails apps
Expert advice on keeping Rails apps organized and fast.
Cheap, easy hosting for Ruby and Rails apps.
Launch your product business way faster with our SaaS template.
A weekly podcast on web development and building products with Ruby, Rails, Javascript, and more.
A few of the Open Source projects we do at GoRails.
Build a Ruby on Rails app in 48 hours with us.
Help Junior developers get hired by sharing small projects to build their resume with paid work.
Find your next Ruby on Rails Job.
In this episode, we will extend Trix by adding a text highlighting feature.
ActionText builds on top of the ActiveStorage file uploads feature in Rails, so we're going to configure Amazon S3 storage so we can upload files in production
ActionText is a feature of Rails that allows you to add rich text including file uploads to any of your models. This is a perfect fit for our Blog Posts, so we're going to replace the text column with a rich text field with ActionText.
ActionText is secure by default, but sometimes you need more control over the sanitization. That's where custom sanitizers and scrubbers come in and we'll learn how to use these.
Ever needed to modify the HTML that ActionText renders? We can override the ActionText::Content class to modify the way HTML formatting works to customize the output. For example, we can add rel="noopener nofollow" to any anchor tags in the content.
Rails 7 changed the way ActionText attachments work, so we'll be writing a Rake task to walk through each of the embeds and update them with the correct Signed GlobalID.
How to save emails with attachments using ActionText and ActiveStorage
In part 1, we're going to setup our Rails application, our models, and connect Hotwire so we can dig into building ActionMailbox next.
When you at-mention a user, you typically want to send email or other types of notifications to alert that user they were mentioned. In this episode, we'll look into ActionText Content to see how we can extract the user mention attachments and do that.
In this episode, we will walk through how you can save the contents of inbound HTML emails from ActionMailbox using ActionText and attachments using ActiveStorage
Mentioning Users with an @mention is a super common feature. Trix and ActionText are now part of Rails 6 which means we can very easily add support for tagging users with @mentions and other custom attachments in your applications.
A quick introduction to using ActionText in your Rails apps for editing and displaying rich text plus uploading files
Join 87,110+ developers who get early access to new tutorials, screencasts, articles, and more.
We care about the protection of your data. Read our Privacy Policy.