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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8378f5e9-507e-40b6-b312-4fad65d72273%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.