EE was helping install rub rail back on the miner. EE was holding the rail in place while another employee was striking the rail with a hammer. The rail jumped into place smashing the right ring finger between the rail and miner. Employee was treated and released from GVMC. EE was diagnosed with a fractured tip of the right ring finger and required 4 stitches around fingernail.