tsechingho / chosen-rails Goto Github PK
View Code? Open in Web Editor NEWIntegrate Chosen javascript library with Rails asset pipeline
Home Page: https://github.com/tsechingho/chosen-rails
License: MIT License
Integrate Chosen javascript library with Rails asset pipeline
Home Page: https://github.com/tsechingho/chosen-rails
License: MIT License
Version 1.1.1, sometime it doesn't work and I get standard select menu.
The README tells us rails 4 users to pull in the above branch but it no longer exists.
wrong number of arguments (2 for 1) app/assets/stylesheets/application.css.scss
I am having this error when I include
*= require chosen"
in application.css.scss
this is gem file
source 'https://rubygems.org'
ruby '2.1.5'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.0'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3'
#postgresql
gem 'pg', '0.17.1'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'devise'
#library js files
gem 'owlcarousel-rails'
gem 'chosen-rails'
#modernizr rails
gem 'modernizr-rails'
#bootstrap gem
gem 'bootstrap-sass', '~> 3.3.1'
gem 'autoprefixer-rails'
#font-awesome-sass
gem 'font-awesome-sass'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end
And this is the application.css.scss file
/*
*= require_tree .
*= require_self
*= require owl.carousel
*= require owl.theme
*= require chosen
*= require_tree ./lib
*/
@import "bootstrap-sprockets";
@import "bootstrap";
@import "font-awesome-sprockets";
@import "font-awesome";
When I remove "require chosen" it works fine.
Thanks
Hi there,
Using chosen-rails-0.9.14 and found that when it is saves data, it always get prefixed with the 3 dashes followed by a single dash and finally 2 single quotes before the actual data from the select options are saved.
I tried googling to see what I did wrong but there was nothing about this.
Thank you.
I've added the gem and *= require chosen to application.css. However, when I try to use Chosen, I get the following error:
couldn't find file 'chosen'
(in /Users/.../app/assets/stylesheets/application.css:12)
Only appears at version 0.13.1, the version 0.12.0 have no below issue
pl-form@cvprcsip01:/home/pl-form/pl-form$ rake assets:precompile
/usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby /usr/local/rvm/gems/ruby-1.9.3-p392/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
File to import not found or unreadable: compass/css3/box-sizing.
Load paths:
Sass::Rails::Importer(/usr/local/rvm/gems/ruby-1.9.3-p392/gems/chosen-rails-0.13.1/vendor/assets/stylesheets/chosen.css.scss)
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/anjlab-bootstrap-rails-2.3.1.2/vendor/frameworks
(in /usr/local/rvm/gems/ruby-1.9.3-p392/gems/chosen-rails-0.13.1/vendor/assets/stylesheets/chosen.css.scss)
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/chosen-rails-0.13.1/vendor/assets/stylesheets/chosen.css.scss:1
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/sass-3.2.9/lib/sass/tree/import_node.rb:67:in `rescue in import'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/sass-3.2.9/lib/sass/tree/import_node.rb:45:in `import'
I try to enable option adding using instructions from : harvesthq/chosen#166
but it doesn't work and I have no error. Is it supported?
Dear All,
I am trying to deploy an app in rails 3.2.16, with capistrano on a vps. This is my first time doing that. During the deployment process, I get the following error: "couldn't find file "chosen-jquery" '. The rpoblem is that my gem versions and generally the whole environment is the same on the server and my testing machine. I get the error during the "assets:precompile" command execution.
Any suggestions?
I am using the gem chosen -v 1.0.2, rails 3.2.16 and Ruby 1.9.3.
Here is my gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.16'
gem 'mysql2'
group :assets do
gem 'sass-rails', '> 3.2.3', require: false> 3.2.1'
gem 'coffee-rails', '
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
gem 'ckeditor', '4.0.4'
gem 'carrierwave', '0.8.0'
gem 'devise', '2.2.3'
gem 'globalize3', '0.3.0'
gem 'babosa', '0.3.9'
gem 'haml', '4.0.4'
gem 'friendly_id', '4.0.9'
gem 'simple_form', '2.0.4'
gem 'kaminari', '0.14.0'
gem 'nokogiri', '1.6.1'
gem 'jquery-fileupload-rails', '0.4.0'
gem 'ancestry', '1.3.0'
gem 'ransack', '0.7.2'
gem 'simple-navigation', '3.10.0'
gem 'mime-types', '~>1.21'
gem 'mini_magick', '3.5.0'
gem 'acts_as_list', '0.1.9'
gem 'chosen-rails', require: false
gem 'pry'
and my application.js manifest:
//= require jquery-1.10.2.min
//= require jquery_ujs
//= require ckeditor/init
//= require jquery.fancybox-1.3.4.pack
//= require jquery.easing-1.3.pack
//= require jquery.mousewheel-3.0.4.pack
//= require chosen-jquery
//= require scripts
//= require admin_scripts
Thank you in advance for your time and effort :)
I'm using chosen-rails to show the options in the filers I define with active admin (witch is in version 0.6.0 according to my Gemfile.lock).
Updating chosen-rails from 0.9.13 ~> 0.9.14 causes chosen to keep the options visible at all times.
In more detail, it doesn't apply the left position style to "chzn-drop"
Instead of seeing
<div class="chzn-drop" style="left: -9000px;">
<!-- and, on click -->
<div class="chzn-drop" style="left: 0px;">
It stays like this:
<div class="chzn-drop">
Downgrading back to .13 fixed the issue for me.
Please see this stackoverflow question: http://stackoverflow.com/questions/21882287/active-admin-chosen-screen-scrolled-to-the-left
Thanks
按照README 操作 前台js 根据id 或者name 取 可以拿到一个数组 但是提交到后台 就取到数组最后一个值
... when I put
'*= require chosen' in my manifest.css.
Thanks !
Hi,
I am using Bootstrap [1] in SCSS flavor and I would like to have chosen styled according to bootstrap styles. The changes were pretty straightforward and you can see it on [2].
Would you be OK if I make a pull request?
The developer would be able to switch to bootstrap by using *= require chosen.bootstrap
Thanks.
[1] https://github.com/thomas-mcdonald/bootstrap-sass
[2] https://gist.github.com/Nerian/4948345
Hi,
I've tried with both bundle exec and without to no avail.
rake aborted!
Don't know how to build task 'update-chosen'
Any ideas?
Cheers
I tried to sue this code but the attr class does not appear in result html
<%= f.enum_select :gender, :class => 'chosen_field' %>
It seems 26e12ed is causing the chzn div to have an 0px width (see attached image). More specifically, it seems related to these lines:
With no real experience with chosen-rails and big ol' commit, it's not obvious to me what's the reason behind these changes. For now, solution is to just revert to v0.9.14.
This gem has dependencies on sass-rails, compass-rails, and coffee-rails so that it can compile the very same source that the chosen project itself does. The project should use the released JS, CSS, and images so it doesn't need this.
error when running for the first time:
couldn't find file 'chosen'
In version 0.9.8.3 in css: background: image-url("chosen-sprite.png") right top no-repeat;
In version 0.9.8.2: background: url(/assets/chosen-sprite.png) right top no-repeat;
sass (3.2.1)
sass-rails (3.2.5)
This gem assumes that all Rails app are using SASS, but some are using LESS. I get an error when trying to integrate with my Rails app that uses LESS.
undefined method `sass' for #<Rails::Application::Configuration:0x00000107cdf7f0>
(in /Users/mhuggins/.rvm/gems/ruby-2.1.0@mysite/gems/chosen-rails-1.1.0/vendor/assets/stylesheets/chosen.css.scss)
Is it possible to remove the compass-rails dependency? That gem locks sprockets to version 2.12.3 and sass-rails to version 5.0.1.
Thx.
Hi,
I deployed a rails 3.2 app on heroku.... and when try to visit, I keep getting the following error in the heroku logs ...
ActionView::Template::Error (File to import not found or unreadable: compass/css3/box-sizing.
Load path: /app
(in /app/vendor/bundle/ruby/2.0.0/gems/chosen-rails-1.0.0/vendor/assets/stylesheets/chosen.css.scss)):
2: <html>
3: <head>
4: <title>Matjjar</title>
5: <%= stylesheet_link_tag "application", :media => "all" %>
7: <%= csrf_meta_tags %>
6: <%= javascript_include_tag "application" %>
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___4565619719342489051_70136980425020'
Any ideas to fix this ?
by the way .. I'm using :
compass (0.12.2)
compass-rails (1.0.3)
chosen-rails (1.0.0)
Hello
I would like to use modified js instead of the original one
For example this one with custom add value feature.
https://github.com/jimlindstrom/chosen
How can I replace it?
thanks!
/Brian
I'm getting this error when deploying and assets are being precompiled.
[bf4ff2dc] ExecJS::ProgramError: TypeError: Cannot set property 'root' of null
DEBUG [bf4ff2dc] (in /home/user/app/shared/bundle/ruby/2.1.0/gems/chosen-rails-1.3.0/vendor/assets/javascripts/lib/select-parser.coffee)
chosen-rails 1.3.0
rails 4.2.0
sass 3.4.11
coffee-script 2.3.0
The 1.2.0
runs ok.
Having an issue pulling chosen method. I'm getting the following error when i attempt to insert coffee script file. "Uncaught TypeError: Object[object Object] has no method 'chosen'.
I'm running rails 4.0
I see the java script and css file in browser debugger so I feel like it loading correctly.
example java script attempting to load:
$ ->
$('.chosen-select').chosen
allow_single_deselect: true
no_results_text: 'No results matched'
width: '200px'
Hey there
I noticed you use SASS for compiling the chosen JS. I don't use SASS in my project, instead I'm using LESS.
But I'm getting an error
cannot load such file -- sass
(in /Users/josh/.rvm/gems/ruby-1.9.3-p0@tttt/gems/chosen-rails-0.9.8.3/vendor/assets/stylesheets/chosen.css.sass)
when loading the page. Do I have to explicitly load SASS as a dependency in my Gemfile?
Thank you.
Hi,
I have a form and i have two chosen select menus in each tab.
Sorry about all the code, but I am really clueless to what's going on here!
Here is the basic structure:
= simple_form_for(@apartment) do |f|
%ul.nav.nav-tabs
%li.active
%a{href: "#apartment_info", data: {toggle: "tab"}} Apartment Info
%li
%a{href: "#bedroom_info", data: {toggle: "tab"}} Bedroom Info
#form_fields
.tab-content
.tab-pane.active#apartment_info
= render 'apartments/upload/apt_info', :f => f
.tab-pane#bedroom_info
= render 'apartments/upload/room_info', :f => f
apt_info:
f.association :equipment, label_method: :name, value_method: :id, include_blank: false, collection: EquipmentCategory.order(:name), as: :grouped_select, group_method: :equipment,input_html: { multiple: true, include_blank: false }
room_info:
= f.simple_fields_for :rooms do |ff|
= render 'room_fields', f: ff
room_fields:
f.association :equipment, label_method: :name, value_method: :id, include_blank: false, collection: EquipmentCategory.order(:name), as: :grouped_select, group_method: :equipment,input_html: { multiple: true, include_blank: false }
I've tried many different options and they all work, in one condition:
The two chosen inputs are in the same tab. When I separate them to two separate tabs, the one on the second tab is added with: display:none, and even when i manually set the display to "block" i get a regular multi choice select and not the chosen one...
Do you have any idea as to why this is happening. Again, all of my tests with the two selects in the same tab worked just fine...
Thanks!
Added a n option to create new entry in case no result found and add it to the selected list. work both on multiple select and single select.
How am I supposed to find the full list of options btw
Thanks in advance
Adding chosen-rails causes my gem to depend on railties (~> 3.2.0.beta) ruby. Not sure where that comes from in your gemspec.
Could you create a new version with the latest version of Chosen (v1.1.0)
Strange thing, but if I just add
//= require chosen.jquery
to my application.js it will result in a "ReferenceError: AbstractChosen is not defined".
Seems like that line includes the chosen.jquery.coffee file, but not the correct chosen.jquery.js
When I copied the contents of chosen.jquery.js into application.js like this
//= require lib/abstract-chosen
//= require lib/select-parser
//= require chosen.jquery
that error went away.
Possible solution: rename the chosen.jquery.js or the chosen.jquery.coffee file so that the asset pipeline does not get confused.
I have an admin that uses Ajax tabs and loads in edit and create forms etc. The issue is that the forms and the fields have the same id when loaded in via ajax. I tried forking to do a fix, but i am new to working with gems. The fix is simple though, if you use the parent form of the actual element that chosen is called on and find the element by id within that form it will fix any ajax issues.
For example:
@parent_form = $(this).parents("form").first()
@container = @parent_form.find('#' + @container_id)
Dear all,
am am getting a
TypeError: $.browser is undefined
error, when using chosen-rails.
My first guess is, that it is not compatible with jQuery 1.9.
Does anyone knows a quick work around?
When I try to bundle in rails 4.2
Bundler could not find compatible versions for gem "sprockets-rails":
In Gemfile:
chosen-rails (>= 0) ruby depends on
sass-rails (>= 3.2) ruby depends on
sprockets-rails (~> 2.0.0) ruby
rails (~> 4.2.0.beta4) ruby depends on
sprockets-rails (3.0.0.beta1)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
chosen-rails (>= 0) ruby depends on
railties (~> 3.0) ruby
rails (~> 4.2.0.beta4) ruby depends on
railties (4.2.0.beta4)
thank you nice library.
I noticed chrome console message.
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi)
please fix this part. maybe this code.
chosen.css
only screen and (min-resolution: 144dpi) {
to
only screen and (min-resolution: 144dppx) {
From readme:
$('.chosen-select').chosen
should be
$('.chosen-select').chosen()
or am I wrong?
Error: uninitialized constant Sprockets::SassCacheStore
compass-rails gem is not capable with sprocket 3.0 rails 4.2.
As Compass-rails is the compatibility gem for chosen rails gem
Is it possible to update to chosen 1.2? Many thanks.
When I include the gem and require chosen-rails
in my manifest, I get an error with missing susy
.
/Users/jrochkind/.gem/ruby/1.9.3/gems/compass-0.12.2/lib/compass/configuration/data.rb:161:in `require': cannot load such file -- susy (LoadError)
from /Users/jrochkind/.gem/ruby/1.9.3/gems/compass-0.12.2/lib/compass/configuration/data.rb:161:in `require'
from ./config/compass.rb:1:in `get_binding'
from /Users/jrochkind/.gem/ruby/1.9.3/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:24:in `eval'
from /Users/jrochkind/.gem/ruby/1.9.3/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:24:in `parse_string'
from /Users/jrochkind/.gem/ruby/1.9.3/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:15:in `block in _parse'
from /Users/jrochkind/.gem/ruby/1.9.3/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:14:in `open'
from /Users/jrochkind/.gem/ruby/1.9.3/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:14:in `_parse'
from /Users/jrochkind/.gem/ruby/1.9.3/gems/compass-0.12.2/lib/compass/configuration/file_data.rb:7:in `block in new_from_file'
from /Users/jrochkind/.gem/ruby/1.9.3/gems/compass-0.12.2/lib/compass/configuration/inheritance.rb:204:in `with_defaults'
from /Users/jrochkind/.gem/ruby/1.9.3/gems/compass-0.12.2/lib/compass/configuration/file_data.rb:6:in `new_from_file'
from /Users/jrochkind/.gem/ruby/1.9.3/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:42:in `configuration_for'
from /Users/jrochkind/.gem/ruby/1.9.3/gems/compass-rails-1.1.3/lib/compass-rails.rb:209:in `boot_config'
from /Users/jrochkind/.gem/ruby/1.9.3/gems/compass-rails-1.1.3/lib/compass-rails.rb:241:in `<top (required)>'
from /Users/jrochkind/.gem/ruby/1.9.3/gems/chosen-rails-1.1.0/lib/chosen-rails.rb:17:in `require'
from /Users/jrochkind/.gem/ruby/1.9.3/gems/chosen-rails-1.1.0/lib/chosen-rails.rb:17:in `<top (required)>'
Does chosen-rails have a dependency on susy? I don't ordinarily use susy, I don't think. What am I doing differently than I should?
It seems that when using Chosen with simple_form, the :value_method is ignored. For instance, I call a value_method of :name, the value written to the database isn't the array position, but rather the actual content of that array position. Any ideas on how to fix this?
I'm using this along with country_select. You can follow how I configured it here https://coderwall.com/p/1ou6mq. The issue I'm having is that it only loads properly when I hit refresh. I believe using ajax: true
should fix it. But applying this in the second or third hash option does nothing. Is there an onload way of making sure the javascript initializes for this?
I'm using jquery and not prototype.
Error in this line
@allow_single_deselect = if @options.allow_single_deselect? and @form_field.options[0]? and @form_field.options[0].text is "" then @options.allow_single_deselect else false
I'm trying to use chosen in some project, but I'm getting the following error:
/home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/railties-4.0.3/lib/rails/railtie/configuration.rb:95:in method_missing': undefined method
assets' for #Rails::Engine::Configuration:0x0000000523c418 (NoMethodError)
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/chosen-rails-1.1.0/lib/chosen-rails/engine.rb:4:in <class:Engine>' from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/chosen-rails-1.1.0/lib/chosen-rails/engine.rb:3:in
module:Rails'
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/chosen-rails-1.1.0/lib/chosen-rails/engine.rb:2:in <module:Chosen>' from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/chosen-rails-1.1.0/lib/chosen-rails/engine.rb:1:in
<top (required)>'
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in require' from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in
block in require'
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in load_dependency' from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in
require'
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/chosen-rails-1.1.0/lib/chosen-rails.rb:10:in <top (required)>' from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler/runtime.rb:76:in
require'
from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler/runtime.rb:76:in block (2 levels) in require' from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler/runtime.rb:72:in
each'
from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler/runtime.rb:72:in block in require' from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:in
each'
from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:in require' from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler.rb:131:in
require'
from /home/cchavez/CLIENT/bitbucket/project/config/application.rb:7:in <top (required)>' from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/railties-4.0.3/lib/rails/commands.rb:74:in
require'
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/railties-4.0.3/lib/rails/commands.rb:74:in block in <top (required)>' from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/railties-4.0.3/lib/rails/commands.rb:71:in
tap'
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/railties-4.0.3/lib/rails/commands.rb:71:in <top (required)>' from script/rails:6:in
require'
from script/rails:6:in `
Incase any one else faces this issue with Compass::Spite within the application stylesheet:
Here's my Gemfile:
gem 'chosen-rails'
gem 'sass-rails', '> 4.0.5'> 4.1.0'
gem 'coffee-rails', '
gem 'jquery-turbolinks
And application.js
//= require jquery.turbolinks
//= require chosen-jquery
And application.css.scss
@import 'chosen';
➜ krspace_platform git:(master) ✗ bundle exec rake assets:precompile
/Users/Byronlee/.rvm/gems/ruby-2.0.0-p481/gems/bundler-1.7.3/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /usr in PATH, mode 040777
/Users/Byronlee/.rvm/gems/ruby-2.0.0-p481/gems/bundler-1.7.3/lib/bundler.rb:302: warning: Insecure world writable dir /Users in PATH, mode 040777
rake aborted!
ArgumentError: wrong number of arguments (3 for 2)
(in /Users/Byronlee/.rvm/gems/ruby-2.0.0-p481/bundler/gems/chosen-rails-b31b58ab3226/vendor/assets/stylesheets/chosen.css.scss)
/Users/Byronlee/.rvm/gems/ruby-2.0.0-p481/gems/sass-3.2.0/lib/sass/importers/filesystem.rb:109:in `find_real_file'
/Users/Byronlee/.rvm/gems/ruby-2.0.0-p481/gems/sass-rails-4.0.3/lib/sass/rails/importer.rb:80:in `engine_from_path'
/Users/Byronlee/.rvm/gems/ruby-2.0.0-p481/gems/sass-rails-4.0.3/lib/sass/rails/importer.rb:27:in `find_relative'
/Users/Byronlee/.rvm/gems/ruby-2.0.0-p481/gems/sass-3.2.0/lib/sass/tree/import_node.rb:45:in `import'
/Users/Byronlee/.rvm/gems/ruby-2.0.0-p481/gems/sass-3.2.0/lib/sass/tree/import_node.rb:25:in `imported_file'
ArgumentError: wrong number of arguments (3 for 2)
(in /Users/Byronlee/.rvm/gems/ruby-2.0.0-p481/bundler/gems/chosen-rails-b31b58ab3226/vendor/assets/stylesheets/chosen.css.scss)
what should i do ?
Seems like this file is missing from the repository. It is accessed from the stylesheet.
Hello,
I am having a hard time getting a Chosen multi-select box to pre-populate selected items on my edit form.
Here is the code in my _form.html.erb:
collection_select(:groups, :group_id, current_school.groups(order: "name ASC"), :id, :name, {}, {multiple: true, class: "chzn_select medium"})
I would like the form to pre-populate selected items from which were already saved on my object. Any suggestions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.