On Mon, Apr 16, 2007 at 03:19:29PM +0200, Steven Garcia wrote: > I am returning nil values for my results, and the cause is obvious.. > I havent set my @results instance variable anywhere. Thing is, > I'm not sure where or how to set it, since my results can be both > terms and articles. > > Do I need to have search actions in each of my controllers? > If so do I set @results there, or is there some catch-all method > I can employ in SearchesController?
this really depends on how your app is structured. If you have different kinds of searches, having different search actions in various controllers is perfectly fine. If you only have one search, but that may return instances of different classes (as is true with multi_search), you have to handle that in your view (or in a suitable helper method you use to display your results). Jens -- Jens Krämer webit! Gesellschaft für neue Medien mbH Schnorrstraße 76 | 01069 Dresden Telefon +49 351 46766-0 | Telefax +49 351 46766-66 [EMAIL PROTECTED] | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

