skip to Main Content

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


  1. Chosen as BEST ANSWER

    Finally, autocomplete option is working in heroku. Just by re-arranging application.js file it works fine for me.

    //= require jquery
    //= require jquery_ujs
    //= require jquery-ui  
    //= require autocomplete-rails
    //= require twitter/bootstrap
    //= require_tree .
    

  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search