In a RL circuit, a battery, coil, and a resistor are connected together in series. In this case after closing the switch, from KVL, we have ε-iR-Ldi/dt=0, but in an ideal situation where R=0, ε= Ldi/dt.
I must conclude that di/dt=ε/L=const, so the current builds up to infinity. However, what I understand is that in such a case I should expect i=0 since an inductor works as if it was a battery of the same magnitude as the source, |ε|, but which happened to be of an opposite polarity.
Another question is this: let's assume that di/dt is constant as it is the case apparently, then why does this rate decrease in value when R≠0?