I'm a little confused at how to setup in controller to pull the search 
results. For def index I have:

      @users = params[:query].blank? ? User.all : 
> User.search(params[:query])


And that in return pulls all users when performing a search. But I have a 
dating app so I need it to only pull users that has the data that was 
search for.

Even if trying it in console with User.search 'asian' or any other option I 
get:

<ThinkingSphinx::Masks::PaginationMask:0x007fe011785ca0 
> @search=#<ThinkingSphinx::Masks::PaginationMask:0x007fe011785ca0 ...>> 


So I know it's not setup right. Do I need to list conditions for all 
searches beneath @users? I'm new to rails so this isn't coming to me as 
good as others. And there's really no examples at how to setup in 
controller. 

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to