I think I remember having a similar issue some time ago and solving it by
moving the devise call in the user model above or beneath TS' indexes block –
can't remember exactly.
On Feb 25, 2011, at 1:38 PM, NeilS wrote:
> Hi,
>
> I have what seems (to me) a very odd conflict between Thinking Sphinx
> (1.4.3) and Devise (1.0.10) on a Rails 2.3.10 app. (Both gems are
> configured in my environment.rb file using config.gem.)
>
> Individually, everything works as expected - Devise works fine for
> registering and logging in etc., Thinking Sphinx returns search
> results happily.
>
> However, in production mode (or with cache_classes=true in development
> mode), running both together makes all my devise routes apparently
> disappear.
>
> In my routes file I have a very simple "map.devise_for :customers",
> and I can hence access "/customers/sign_up" fine. At this point, I
> have the Thinking Sphinx gem installed, but no indices defined.
>
> Now, as soon as I go to my Product model, and add a very simple index
> set-up, like:
>
> define_index do
> indexes name
> end
>
> then the /customers/sign_up page 404s, with:
>
> ActionController::RoutingError (No route matches "/customers/
> sign_up" with {:method=>:get})
>
> If I then remove the define_index block, everything works fine. As I
> said, everything also works fine with cache_classes set to false.
>
> This is a moderately complex project, so it's possible that something
> else is causing the problem that's manifesting itself in this way, but
> if anyone has any suggestions or advise as to how to try to debug or
> resolve this, I'd be very appreciative.
>
> Many thanks,
> Neil.
>
> --
> 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.
>
--
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.