RailsCasts Pro episodes are now free!

Learn more or hide this

Sean L. Scurlock's Profile

GitHub User: em0ral

Site: http://www.appgenesis.net

Comments by Sean L. Scurlock

Avatar

Of course you could do one with Sunspot....hopefully using mongoid

Avatar

A good mongoid cast would fit in nicely...of course would need xmlpipe

Avatar

Ryan

For some reason I am having trouble mapping this to mongodb using mongoid. I believe this portion sis the culprit..

if search
    find(:all, :conditions => ['name LIKE ?', "%#{search}%"])
else
    find(:all)
end

Is the problem with the LIKE clause?