tsechingho / chosen-rails

Integrate Chosen javascript library with Rails asset pipeline
https://github.com/tsechingho/chosen-rails
MIT License
524 stars 233 forks source link

With ActiveAdmin: couldn't find file 'chosen-jquery' with type 'application/javascript' #82

Closed rhnorment closed 8 years ago

rhnorment commented 8 years ago

Gemfile...

source 'https://rubygems.org'

ruby '2.2.3'

gem 'activeadmin', github: 'activeadmin'
gem 'bourbon', '~> 4.2.0'
gem 'chosen_rails'
gem 'coffee-rails', '~> 4.1.0'
gem 'delayed_job_active_record'
gem 'email_validator'
gem 'devise'
gem 'faker'
gem 'flutie'
gem 'font-awesome-sass'
gem 'high_voltage'
gem 'i18n-tasks'
gem 'jquery-rails'
gem 'jquery-turbolinks'
gem 'neat', '~>1.7.0'
gem 'newrelic_rpm', '>= 3.9.8'
gem 'rack-canonical-host'
gem 'rails', '4.2.4'
gem 'recipient_interceptor'
gem 'refills'
gem 'sass-rails', '~> 5.0'
gem 'spreadsheet'
gem 'title'
gem 'turbolinks'
gem 'uglifier'

active_admin.js.coffee...

//= require active_admin/base
//= require chosen-query

Any suggestions out there?

rhnorment commented 8 years ago

I changed

//= require chosen-query

to

//= require chosen.query

Why does this work? The file is clearly named 'chosen-query.' Am I looking in the wrong location?

rhnorment commented 8 years ago

Closed for my stupidity. Coffeescript file is different.