agree detect in the rails context is better so the two aren't confused.