Jeremy Durham

Ruby, Rails, and everything in between.

  • BlogThoughts
  • AboutAbout the Author
  • ContactGet in touch

September 16, 2008 11:21
Posted by Jeremy Durham

thinking-sphinx and Merb, round 2

Recently, I built a music review site for a friend using Merb + Thinking-Sphinx (check it out). I ran into a few issues with Thinking-sphinx + Merb, and wanted to document them here in case anyone has similar issues going forward.

merb_helpers and thinking-sphinx conflict

When using merb_helpers and requiring thinking-sphinx, instead of using dependency, form_contexts seem to “go away”. This means that all merb_helpers stop working. I changed the gem name to thinking_sphinx, installed it and used “dependency ‘thinking_sphinx’”, and all was well.

Thinking Sphinx always runs in development mode

Merb no longer sets the MERB_ENV environment variable, which Thinking Sphinx uses to determine what environment Merb is running in. Using Merb.environment is a better way now to determine what mode Merb is running in.

Thinking Sphinx rake tasks depend on the merb_init rake task, which doesn’t exist

merb_env is the correct rake task, not merb_init

So far, I have enjoyed using Thinking Sphinx. Pat Allan (the author of TS) has been awesome about responding to issues and working with me to resolve them.

UPDATE These issues have been resolved in thinking_sphinx master.

No Comments

Posted Under Programming

  • Posts
  • Twitter
  • Flickr
 

DNS-321 + OpenVPN...

Technology

 

There is no Holy ...

Technology

 

Google and Apple:...

Technology

Am I the only one who thinks that the Ruby Motion video only outputs on the left channel? #annoying

follow me on
twitter

125942640_a3dcc3f951_s125942637_c4524c7c88_s125942628_a682f8a639_s122144184_5f2dd86929_s122144182_1b01ded312_s122144181_893a82f1d3_s122144179_70465b00ff_s122102402_21e6174af6_s122102401_f6d9ebff55_s

Categories

  • Technology
  • Programming
  • Family
  • Travel

This site is using the Handgloves WordPress Theme
Designed & Developed by George Wiscombe

Subscribe via RSS