Electromagnetic effects in the theory of rods