that scematic show both sides as ground no wander you are confused but you got an answer for that amazing. the diode or led must be connected in the forward direction to work. Forward means the positive power should go to the anode then it is true it does not matter where the limiting resistor is placed. before or after as long as it limit the current below the device dissipation.