我有一個應用程序,我使用那裏的autocomplete
寶石。它在本地主機上運行得很好。但是當我將這個應用程序部署到Heroku時,autocomplete
插件不起作用。沒有在Firebug中的錯誤,只是沒有。Jquery-ui不能在Heroku上工作,但在本地主機上是
有沒有人有一個想法,哪裏可能是一個問題? 這是怎麼看我的Gemfile
:
source 'http://rubygems.org'
gem 'rails', '3.1.2'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
gem "rvm", "~> 1.9.2"
gem 'authlogic'
gem "rake", "0.8.7"
gem 'json'
gem "declarative_authorization", "~> 0.5.3"
gem "ancestry", "~> 1.2.4"
gem "taps", "~> 0.3.23"
gem "paperclip", "~> 2.4.5"
gem 'aws-s3'
gem "awesome_print", "~> 1.0.1"
gem 'actionmailer'
gem 'wkhtmltopdf-binary'
gem 'rails3-jquery-autocomplete'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.1.5.rc.2'
gem 'coffee-rails', '~> 3.1.1'
gem 'uglifier', '>= 1.0.3'
end
group :production do
gem 'therubyracer-heroku', '0.8.1.pre3'
gem 'pg'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug'
什麼? – sarnold 2011-12-30 01:00:40
我只是預編譯資產,它是「工作」 - 我現在得到的錯誤** ActiveRecord :: StatementInvalid(PGError:錯誤:功能較低(整數)不存在** - 但我怎麼能寫我自己的搜索方法[這寶石(https://github.com/crowdint/rails3-jquery-autocomplete)? – user984621 2011-12-30 01:24:55
應該創建一個單獨的問題,但是這取決於您如何使用這一點。它意味着你要在一個搜索整數列? – 2011-12-30 01:39:11