Autodetect for a matching controller or a view