Skip to content

Commit 7f9251d

Browse files
authored
Merge pull request #1899 from asideofcode-dev/asideofcode-dev-patch-1
Fix: Explicitly use URL on uploader object for image_tag
2 parents b82c63f + 49bb71a commit 7f9251d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/chapter/show.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
%p.lead.mb-0= t('chapters.intro_html')
99
- if @chapter.image.present?
1010
.col-md-6
11-
= image_tag @chapter.image.bg, alt: "#{@chapter.name} chapter", class: 'mw-100'
11+
= image_tag @chapter.image.bg.url, alt: "#{@chapter.name} chapter", class: 'mw-100'
1212

1313
.alert-primary.pt-4.pb-4
1414
.container

0 commit comments

Comments
 (0)