Search Results for "image-attachments-in-actiontext-not-showing-due-to-routing"
Lessons
Forum Threads

How to use ActionText in Rails 6 Discussion
30
General
Great stuff Chris! Very exciting. I also just watched the @mention episode too.
To anyone reading this, a few questions:
1. Do you think we can get @mentions working on our Rails 5.2 app that ha...

Select cover image from ActionText attachments
0
Rails
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 posted

Rich Text Blog Posts with ActionText Discussion
18
General
Hi Chris, thanks for the video. I was wondering how do I truncate the text on the index.html page? I only want to show 130 characters of the content (previously body).
<%= truncate(blog_post.c...

ActionText attachments not visible in Trix editor after domain migration
3
Rails
Hi All,
We recently moved domains and have noticed an issue with how ActionText attachments are displayed in the Trix editor. They display correctly in the show view, just not in the editor.
Arti...
Emiliano López replied

Using the Trix Editor plus File Upload Attachments Discussion
52
General
Great vid, can this be done with the carrierwave gem?
Gabriel Ursache replied

Migrating From jQuery to Vanilla Javascript Discussion
47
General
`document.querySelectorAll` looks like return an array, but in fact it is an object. It's important to keep this in mind in order to avoid some problems iterating the dom elements.
Dan LeGrand replied

How to save ActionMailbox inbound HTML emails and attachments with ActionText and ActiveStorage Discussion
2
General
Firstly, thanks for this. It has been very useful and saved me a heck of a lot of time. I do have one specific question. In app/mailboxes/post.rb should line 11 not read:
```
@_attachments ||=...
Arnaud replied

A few issues with tidying up @mentions
1
Rails
Hello, I was following along with the mentions episode here https://gorails.com/episodes/at-mentions-with-actiontext?autoplay=1
I made a few tweaks to help suit my application a bit better, and on...
Mylan Connolly replied

Display non-image attachments with Trix/action_text
0
Rails
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 posted

How to set correct host for action-text-attachment figure img src?
0
Rails
My rails 6 app is set up with amazon s3 with a react front-end.
I serve the react front-end with json and in my json I have Post model with a rich content body.
In the body I have added an image. W...

How would one go about sorting ActiveStorage has_many_attached objects?
6
Rails
Hey there,Just wondering if anyone can shed some light here as the Google search is pretty thin right now for ActiveStorage.Is there a way to a a property (say sort_order) to each of the has_many_a...
Tomas Valent replied
Solved

Refile :fill does not work for me
1
Gems / Libraries
I have the refile gem connected with aws by following the instruction on their github. For an image i would get something like
/attachments/store/78b928c7897e3b12de80cf1ffdfdfdfdf/image.jpg
w...
Chris Oliver replied

Upload image and send email without saving to the database
1
Rails
I recently tried to implement summernote to my rails app. I can send email and everything works fine. But I want to upload image and send the email, but the email received shows that the image was ...

Ruby on Rails ActionMailer Images Issue
1
General
I'm trying to use embedded images in my E-Mail, but if I try to load a file from my image folder as a header, it's not displaying in the email:
The image is an inline attachment:
def export_b...
Chris Oliver replied

How do I configure paperclip with capistrano?
7
Servers
Hi,
I deployed using the "Deploy Ruby on Rails" guide.
However I paperclip attachments no longer work in production. Got the below error:
Failed to load resource: the server responded with a sta...
Chris Oliver replied
Solved

Sorting Images using Active Storage
25
Rails
I'm experimenting with Active Storage to manage images. I got the multiple uploads working, but I want to use acts_as_list position with jQuery sortable to manage their order using ajax, like in [t...
Tony Serkis replied

How to write a conditional in a create action?
4
Rails
I recently worked through the 4 episodes here on direct uploads to S3 with shrine.
I have things setup to upload both images and documents and am now trying to write a conditional to create either...

How do I set and use a default image with active storage?
3
Rails
If the User does not upload an image using active storage, how do I set a default image for that record?

I need help to get delete of attachments to work from view with ActiveStorage
0
Rails
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