Ah, you're using an old version of the mysql2 gem - update to 0.3.13 and see if 
that helps.

On 23/08/2013, at 10:22 AM, C Wilson wrote:

> SELECT * FROM `user_core` WHERE MATCH('asian @sphinx_internal_class_name 
> (User)') AND sphinx_deleted = 0 LIMIT 0, 20
> NoMethodError: undefined method `next_result' for 
> #<Mysql2::Client:0x007fe012ad7038>
> 
> Is what it returns. I'm going to look into it in the morning as that error 
> should help me produce something now. 
> 
> On Thursday, August 22, 2013 7:48:17 PM UTC-4, Pat Allan wrote:
> I'm going to try and get to your code today - but just quickly, the search 
> arguments still go with the search call, so:
> 
>   User.search('asian').to_a
> 
> -- 
> Pat
> 
> On 23/08/2013, at 2:09 AM, C Wilson wrote:
> 
>> Ok I ran User.search.to_a "Asian" and it returned wrong number of arguments 
>> (1 for 0). So I'm going to check my search model to see if I can find the 
>> culprit. Will keep you updated.
>>  
>> 
>> On Friday, August 9, 2013 10:39:10 AM UTC-4, C Wilson wrote:
>> 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.
> 
> 
> -- 
> 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.

-- 
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