Hi,

I had Ramaze + ActiveRecord + WillPaginate + ThinkingSphinx working
together yesterday night. I don't rely on ActionView so I had to make
some kind of adapter to make WillPaginate believe everything is fine.

In case it's useful to Thuva or others, here are the steps in short
(as far as TS is concerned):
- TS::Configuration.reset patch to set self.app_root based on
RAMAZE_ROOT (a constant I'm defining myself as I could not find
something reliable in Ramaze for that yet)
- check for ActiveRecord::Base.logger not nil in search_results(*args)
- tweak thinking_sphinx:app_env to invoke my own :environment task
(not defined my Ramaze but I added one myself for my own needs)
- tweak my Rakefile to include TS tasks: Dir["#{File.dirname
(__FILE__)}/gems/*/tasks/*.rake"].sort.each { |ext| load ext }
- ActiveRecord::Base.logger = Ramaze::Logger::Informer.new (if a
logger is useful - this one works)
- ThinkingSphinx::Configuration.instance.load_models in my start.rb

The easiest way is probably to include ActionView so that WillPaginate
works out of the box.

I'll try to find a clean way of modifying TS code to make these things
easier (I need more documenting on the Ramaze side).

Guess what - it works absolutely perfectly :)

cheers,

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

Reply via email to