Re: Issue with autocomplete jquery.

49 views
Skip to first unread message
Message has been deleted

Sridhar Vedula

unread,
Feb 14, 2014, 5:31:04 AM2/14/14
to rubyonra...@googlegroups.com


On Friday, 14 February 2014 15:51:58 UTC+5:30, Sridhar Vedula wrote:
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 'autocomplete'

Please help me out.

James Davis, PhD

unread,
Feb 14, 2014, 3:00:23 PM2/14/14
to rubyonra...@googlegroups.com


On Friday, February 14, 2014 4:21:58 AM UTC-6, Sridhar Vedula wrote:
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.

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. 

buyzlots

unread,
Feb 14, 2014, 3:01:37 PM2/14/14
to rubyonra...@googlegroups.com
change:
//= require_directory ./vendor
to
//= require_tree ./vendor
--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/38802246-202f-46a3-8e2a-2f91c8b1d1e8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages