use any? method, but make rails path the first to be tried