Issue with autocomplete jquery

When I run my application in local machine the autocomplete
is working good, but after deployment it is failing.

This is the order in my application.js

//= require jquery
//= require jquery_ujs
//= require jquery.ui.datepicker
//= require jquery.ui.draggable
//= require jquery.ui.droppable
//= require jquery.remotipart
//= require twitter/bootstrap
//= require_tree .
//= require_directory ./vendor

But what I doubt is in the console it is throwing some error as :

Uncaught TypeError: Object [object Object] has no method ‘truncate’

Please help me out.

On Friday, February 14, 2014 4:21:58 AM UTC-6, Sridhar Vedula wrote:

//= require jquery.ui.droppable

I bet the main difference between your production & development
is the data in your db. Can you identify the exact record / object that
causing the error? Use your logs or console in your production
to find the the object that has an issue with the ‘truncate’ method.

//= require_directory ./vendor
//= require_tree ./vendor