rails 3/4 handle unknown formats slightly different