change: //= require_directory ./vendor to //= require_tree ./vendor On Feb 14, 2014, at 3:00 PM, "James Davis, PhD" <james.davis...@gmail.com> wrote:
> > > 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. > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@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. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3EB3557C-E4E0-4081-910B-3E1F6EA84366%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.