Chao Lam

Working on the next small things …

Archive for May 2016

leave a comment »

If you’re using the rails jquery autocomplete gem and mongoid, you need to specify the gem *after* the mongoid gem!

i.e. in your Gemfile

gem ‘mongoid’
….
gem ‘rails-jquery-autocomplete’

+++
Apparently, it checks whether mongoid is present before injecting some special mongoid methods!

Written by Chao

May 27, 2016 at 7:39 pm

Posted in Uncategorized