RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: em0ral
Site: http://www.appgenesis.net
Were you able to figure this out?
Of course you could do one with Sunspot....hopefully using mongoid
A good mongoid cast would fit in nicely...of course would need xmlpipe
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?
Were you able to figure this out?
Of course you could do one with Sunspot....hopefully using mongoid
A good mongoid cast would fit in nicely...of course would need xmlpipe
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?