Found the stupid! It now works.
On Aug 3, 8:37 pm, James Healy <[email protected]> wrote:
> smeed652 wrote:
> > My Controller:
>
> > class VideoSearchesController < ApplicationController
> > def index
>
> > @videos =[]
>
> > if params[:search]
>
> > �...@videos = Video.search(params[:search], :page => params[:page],
> > :per_page => 10,
> > :match_mode => :all,
> > :field_weights => {:is_partner
> > => 1, :popularity => 1})
> > end
> > end
> > end
>
> Is the error occuring when you haven't submitted a search request? If
> params[:search] is empty, then @videos is set to an array that doesn't
> have the total_entries() method.
>
> -- James Healy <jimmy-at-deefa-dot-com> Tue, 04 Aug 2009 13:34:14 +1000
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---