Thinking Sphinx and Ransack in the same application?

I have Ransack set up to do simple attribute-based search in my
application. Now, I’m trying to add TS to the app to enable full-text
searching. Trouble is, both of these define a Model#search method. Has
anyone here ever tried this combination? Is there a way to rename the
search method on either of these?

Thanks in advance,

Walter

On Sep 4, 2012, at 12:07 PM, Walter Lee D. wrote:

I have Ransack set up to do simple attribute-based search in my application.
Now, I’m trying to add TS to the app to enable full-text searching. Trouble is,
both of these define a Model#search method. Has anyone here ever tried this
combination? Is there a way to rename the search method on either of these?

Thanks in advance,

Digging at this a little more in console, it appears that TS completely
clobbers Ransack’s search, so I know that much so far.

Walter

Use ‘ransack’ method for a ransack search
[examplehttp://stackoverflow.com/a/10421755/820520].
This should solve all your problems.

Regards,
Anton

, 4 2012 ., 20:07:36 UTC+4 Walter Lee D.
:

On Sep 5, 2012, at 7:05 AM, antonk wrote:

Use ‘ransack’ method for a ransack search [example]. This should solve all your
problems.

Nice find – this is exactly what I needed!

Walter

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs