How to snap an object to another object's edge
Change the snapping mode in the snap tab in the 3d view header to Vertex and drag according on your specific axis until a small ring appears on the vertex you want to snap to when you hover the mouse over it.