Catch-all Route

A wildcard1 or a catch-all route in Rails must be near the bottom as it matches top to bottom.

get '*tag', to: 'gifs#random'

Must give a name to the *, in this example its tag, which is accessible in the controller via params[:tag]