We've moved discussions to Discord

video_tag isn't showing the video.

Justin Zimmerman
Model: Video
Active storage attachment : video_file

show.html.erb

#
<%= @video.video_file %>
#

Model: Video
Active storage attachment : video_file

show.html.erb

#
<%= @video.video_file %>
#

I'm just getting my active storage code for the attachment. 

which is something like "#<Attachment:0x00007ffadd20ed80>"

Not the actual attachment itself. In this caseamyagoalaisaa playable video.

I tried helpers like video_tag, url_for, Rails_blob_path etc... And just received errors (nomethoderror) or a persistence? Nil error. 

Examples of things I've tried:

<%= video_tag rails_blob_path(video.video_file) %>

<%= video_tag url_for(video.video_file) %>

<%= video_tag url_for(@video.video_file) %>

Appreciate everyone's help. I've been everywhere,  and hired another dev. We still can't find the answer.

Thanks
Notifications
You’re not receiving notifications from this thread.