This repository was archived by the owner on Jan 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ import Turbolinks from "turbolinks"
8
8
import * as ActiveStorage from "@rails/activestorage"
9
9
import "channels"
10
10
11
+ const images = require . context ( "../images" , true )
12
+ const imagePath = name => images ( name , true )
13
+
11
14
Rails . start ( )
12
15
Turbolinks . start ( )
13
16
ActiveStorage . start ( )
Original file line number Diff line number Diff line change 1
1
< h1 > Welcome to the best page on this website</ h1 >
2
+
3
+ < h2 > On image loading:</ h2 >
4
+ < p >
5
+ A long time ago, while I was at my first contract ever, my client used
6
+ Google Chat to keep in touch with everyone since we were all remote except
7
+ the one day every other week we collected in Big Rapids at 7-o-****ing-clock.
8
+ They also made me use Subversion, which was mostly a huge pain in the ass,
9
+ but I was too green to know it at the time.
10
+ </ p >
11
+ < p >
12
+ I digress: Google Chat wasn't as good as Slack, but it did let me upload this
13
+ kickass avatar which I made in under 5 minutes using a touchpad in MS Paint.
14
+ The contract is long over, but this avatar is now plastered all over every
15
+ profile I've made or updated since then. Weird what stuff sticks with us.
16
+ </ p >
17
+ < p >
18
+ Anyway, here's an image I loaded with Webpacker:
19
+ </ p >
20
+ <%= image_pack_tag "media/images/avatar.png" %>
You can’t perform that action at this time.
0 commit comments