Blender: Keep Material Image from Stretching

I found it odd that the default behavior for a material that uses an image in blender stretches, instead of tiles. So for instance, if I have two cubes with one of them twice as large as the other, and I apply a material which uses an image of bricks, the larger block will have bricks that are larger than the other. Of course we want the bricks to be the same size, so I need the image to tile itself as opposed to stretch.

You can see the issue in this screenshot below. This is two cubes sitting next to each other — because the cube on the right is twice as large as the cube on the left, it stretches that material texture so all of the bricks are twice the size:

It took quite a bit of searching and it takes a little bit of work (I was hoping for just a checkbox for “tiled” or “stretched”, which of course doesn’t exist).

Step 1: Go into the shading view

Step 2: Set the nodes just like this
(To add these boxes, go into the “add” menu and search for the various nodes you need to add, in this case, you’ll need to add “Mapping” and “Texture Coordinate” (assuming you’ve already added the image). Then make sure the nodes are connected in the same way as below. A few key things:
1. Make sure that image node, that the second dropdown is set to “box”.
2. Make sure you’ve selected an object with the eyedropper tool at the bottom of the “Texture Coordinate” node. I guess blender uses this element to size all of the materials off of.

Once everything was set up as above (Nothing was working until I used that eye-dropper tool to select a box), I could get this result, which is exactly what I wanted: