Issue with autocomplete jquery

When I run my application in local machine the autocomplete
functionality
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
environment
is the data in your db. Can you identify the exact record / object that
is
causing the error? Use your logs or console in your production
environment
to find the the object that has an issue with the ‘truncate’ method.

change:
//= require_directory ./vendor
to
//= require_tree ./vendor

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs