crazy AS question

ok so I have activescaffold working in my project. now what I would
like to do is after a search is executed, if there is more than one
result show the list of results as it does now by default BUT if there
is only one result skip the grid and default to the show method of the
record that satisfied the search. Can anyone help with this?