# Crazy AS question

**URL:** <https://www.ruby-forum.com/t/crazy-as-question/128860>\
**Category:** Rails\
**Created:** [February 12, 2008, 7:01am UTC](https://www.ruby-forum.com/t/crazy-as-question/128860 "2008-02-12T07:01:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![agilehack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d2c977/32.png) [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Post date:** [February 12, 2008, 7:01am UTC](https://www.ruby-forum.com/t/crazy-as-question/128860/1 "2008-02-12T07:01:24Z")

</div>

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?
