I’m aware that similar questions have been asked numerous times but none of them have helped thus far. When I work through the logic of deriving the formula for length contraction,I keep making an error which I cannot seem to locate. My logic goes like this:
I stand on a platform in the rest frame while and train moving at relative velocity, v, in an inertial frame travels past. The train is at rest with a ruler in its inertial frame.
From my perspective on the platform, the length of the ruler is L = vt where v is the relative velocity of the train and t is the time the I perceive that the ruler takes to pass me.
From the perspective of an observer in the train’s frame, the length of the ruler is L’ = vt’ where v is the relative velocity of me on the platform and t’ is the time that the train observer perceived the ruler required to get past me.
Since, by time dilation, $t = t’/\sqrt{1-v^2/c^2}$, therefore $L = vt’/\sqrt{1-v^2/c^2}$. So, from the perspective of the observer in the rest frame, the length of the train seems to have dilated rather than contracted? Where have I gone wrong? Many thanks in advance.