Controller usage

adam is right i mess up listen to him

I’m with ya! Time to hit the sack.

Thanks so much for your help!

One further point, the code for the search itself should probably be a class member of the model (or possibly a named scope if it is trivial). Call this from the controller. This keeps business logic out of the controller.

Colin