can anyone help me? i’m using rails4 and i have included autocomplete field which works in localhost but it’s not working in heroku.
application.js
//= require bootstrap
//= require twitter/bootstrap
//= require jquery
//= require jquery_ujs
//= require_tree .
//= require autocomplete-rails
//= require jquery-ui
production.rb
config.assets.compile = true
routes.rb
get :autocomplete_customer_first_name, :on => :collection
application.js
//= require autocomplete-rails
controller
autocomplete :customer, :first_name, :display_value => :first_name, :full => true
Thanks
2
Answers
Finally, autocomplete option is working in heroku. Just by re-arranging application.js file it works fine for me.
It seems someone ran into a similar problem a while back, working on your machine but not Heroku. Check it out and let me know if this solution helps! jquery-ui autocomplete works locally not on heroku