Search Results for "image-attachments-in-actiontext-not-showing-due-to-routing"
Lessons
Forum Threads
Select cover image from ActionText attachments
I wanted to add a “cover image” feature to a blog. I’m already using ActionText for the content. I’m not sure if this is a good idea or if there are better ways to do it. I’m going to explain what...
gorka postedRich Text Blog Posts with ActionText Discussion
If you're using import maps, you can adjust the pin, instead: ```ruby pin "trix", to: "https://ga.jspm.io/npm:trix@2.1.10/dist/trix.esm.min.js" ``` With the bare `pin "trix"`, I was getting a mu...
aldumas repliedActionText attachments not visible in Trix editor after domain migration
I found a solution. The old domain is embeded in RichText body, so it must be replaced by the new one, running this from rails console: ActionText::RichText.where("body like '%https://olddomain%'"...
Emiliano López repliedUsing the Trix Editor plus File Upload Attachments Discussion
Hi there! Any idea why uploading works in development locally, but not on ngrok or in production? I get this: application-f91eb14d1a71eb1bded7bacba5a2c9f6e50d1ef47606669468a65584ed3f021d.js:18352 U...
Gabriel Ursache repliedMigrating From jQuery to Vanilla Javascript Discussion
@Chris, I know this episode is a little old, but this is still something I'm dealing with today. I understand the rationale behind the move to get rid of jQuery in web apps: jQuery was from a time...
Dan LeGrand repliedHow to save ActionMailbox inbound HTML emails and attachments with ActionText and ActiveStorage Discussion
Thanks Chris! I put this into a concern to be able to reuse it across multiple mailboxes: https://gist.github.com/sowenjub/9917305b2b551a31df9f9ed0ec34d242
Arnaud repliedA few issues with tidying up @mentions
Answering the second half of my question from a response Benjamin Hargett made in the video. Fixing the `_pasteHtml` method with: ```javascript this.editor.setSelectedRange([position - endPos + st...
Mylan Connolly repliedDisplay non-image attachments with Trix/action_text
I've got the barebones functionality of Trix working ok... The editor displays ok and text and images display as expected. But when I drag and drop a PDF (for example) I can see in the editor a sma...
Nelson Casanova postedHow to set correct host for action-text-attachment figure img src?
How would one go about sorting ActiveStorage has_many_attached objects?
Add an Array/JSON Array type column to the model which declares the has_many_attached and store ids of ActiveStorage::Attachments in it. Then you can do : ``` # app/models/entry.rb class Entry &...
Tomas Valent replied • SolvedRefile :fill does not work for me
I'm not quite sure how the AWS storage works with the resized images. I'm guessing it downloads a copy of the image to your server from S3 and then resizes it, but maybe it's slow to reprocess thin...
Chris Oliver repliedUpload image and send email without saving to the database
Ruby on Rails ActionMailer Images Issue
Hey Maximilian! I haven't actually done this before, but it looks like you're mostly on the right path. I found this on Stack Overflow that looks very similar. https://stackoverflow.com/a/25810153...
Chris Oliver repliedHow do I configure paperclip with capistrano?
Awesome! Yeah, the 12factor gem is useful for Heroku, but if you run your own server you don't want it as it won't write to that file. Glad you got it working!
Chris Oliver replied • SolvedSorting Images using Active Storage
Look up jQuery sortable and make sure you have it installed. I do NOT use webpack. It's too complicated IMO for simple things.
Tony Serkis repliedHow to write a conditional in a create action?
How do I set and use a default image with active storage?
I need help to get delete of attachments to work from view with ActiveStorage
Hello, I am on Rails 5.2.3. I just followed the rails guide on ActiveStorage, and have the attachments working. from a display, download link POV. What I do not seem to get functioning is the delet...
jl@lejoly.com posted