Hey Pat,
Thank you for getting back to me.
Now that you asked me for this information, I've actually decided to
try to move my application from the plugin to the gem. I'm having some
errors there, but here's the info from what I was using.
I was running Rails 2.5, Sphinx 0.9.9, Thinking Sphinx plugin (which
version... good question. Not updated in a few months.), thinking-
sphinx-raspell 1.1.0.
My gem config was as follows:
config.gem 'raspell'
config.gem 'thinking-sphinx-raspell', :lib => 'thinking_sphinx/
raspell',
:source => 'http://
gemcutter.org',
:version => '>= 1.0.0'
And my controller and view code:
@results = ThinkingSphinx.search @query,
:classes => [Journalist, Issue, Column, Piece, Page],
:page => params[:page] || 1,
:per_page => 10,
:sort_mode => :extended,
:sort_by => 'custom_model_sort ASC, ' + sort_by,
:with => (options.empty? ? '' : options)
- if @results.suggestion?
%p
= 'Did you mean "' + link_to(@results.suggestion, search_path + '?
q=' + @results.suggestion) + '"?'
On Dec 10, 12:17 am, Pat Allan <[email protected]> wrote:
> Hi Peter
>
> Thanks for the email - it's nice to have the validation that the error still
> exists. However, I can't seem to reproduce it. So, can you give me some
> details of your setup?
>
> * Rails, Sphinx, Thinking Sphinx, thinking-sphinx-raspell versions
> * gem config from environment.rb
> * The lines of code causing the problem in your view
>
> Cheers
>
> --
> Pat
>
> On 09/12/2009, at 4:09 PM, Peter Akkies wrote:
>
>
>
> > Hey Pat,
>
> > I visited the following page regarding somebody who had a problem
> > running the Raspell plugin:
>
> >http://github.com/freelancing-god/thinking-sphinx-raspell/issues#issue/1
>
> > I have the same problem, so let me paste my stacktrace:
>
> > /Users/peterakkies/Sites/phoenix/vendor/plugins/thinking_sphinx/lib/
> > thinking_sphinx/search.rb:94:in `method_missing'
> > /Users/peterakkies/Sites/phoenix/app/views/search/search.html.haml:
> > 39:in `_run_haml_app47views47search47search46html46haml'
> > /Library/Ruby/Gems/1.8/gems/actionpack-2.3.4/lib/action_view/
> > renderable.rb:34:in `send'
>
> > (etc.)
>
> > I hope you can help me figure out what's wrong.
>
> > - Peter Akkies
>
> > --
>
> > 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
> > athttp://groups.google.com/group/thinking-sphinx?hl=en.
--
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.