Running objects along a track

I want to setup a track that i can have collidable objects ride on. Is there a structure that would work well for this?
My only thought right now is to setup a two collidable border areas and pull the objs in between them. Does anyone know of a way to use joints, etc to do this?
Yeah you'll probably want to use a prismatic joint. There's a thread here about that.

Original thread: https://box2d.org/forum/viewtopic.php?t=513