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.