mattantonelli / dynamic_selectable Goto Github PK
View Code? Open in Web Editor NEWRails gem that allows for easy generation of dynamic cascading selects.
License: MIT License
Rails gem that allows for easy generation of dynamic cascading selects.
License: MIT License
With Turbolinks 5, scripts fired on the initial page load will no longer be re-run when the page is revisited. The coffeescript should be updated to either look for the turbolinks:load
event or the listener should be updated to use event delegation.
A more detailed explanation of the issue can be found here.
Hi @mattantonelli, i followed your steps and configured the dynamic_selectable but rails spitting out:
undefined method `dynamic_selectable_[#<Gender id: 1, slug: "masculino", gender: "Masculino", created_at: "2015-12-29 20:26:14", updated_at: "2015-12-29 20:26:14">, #<Gender id: 2, slug: "feminino", gender: "Feminino", created_at: "2015-12-29 20:26:23", updated_at: "2015-12-29 20:26:23">, #<Gender id: 3, slug: "infantil", gender: "Infantil", created_at: "2015-12-29 20:26:31", updated_at: "2015-12-29 20:26:31">]_ids_path' for #<#Class:0x007f8904086328:0x007f890991a728>
Would be nice to have an option to submit the parent object with the form, if desired. Using the vehicle example, the vehicle model could reference both the make_id
and the model_id
. Currently, only the model_id
would be submitted to the form.
this gem works with two related models or more?
Looks like a useful gem.... can we please have support for Rails 5? Unsurprisingly, attempting an install as per the README instructions on a Rails 5 project raises dependency errors.
After a new deployment using nginx and phusion passenger, the application fails to load with a 502 error. The following is displayed in the nginx error log:
[ 2015-04-13 13:40:38.0421 8139/7f81c14bc700 Pool2/Pool.h:777 ]: Process (pid=30506, group=/var/rails/ebb/current#default) no longer exists! Detaching it from the pool.
App 30519 stdout:
App 30478 stderr: /var/rails/ebb/shared/bundle/ruby/2.1.0/gems/actionview-4.1.6/lib/action_view/helpers/form_options_helper.rb:162:in `select': wrong number of arguments (1 for 2..5) (ArgumentError)
App 30478 stderr: from /home/rails/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/passenger-4.0.44/lib/phusion_passenger/request_handler.rb:517:in `wait_until_termination_requested'
App 30478 stderr: from /home/rails/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/passenger-4.0.44/lib/phusion_passenger/request_handler.rb:206:in `main_loop'
App 30478 stderr: from /home/rails/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/passenger-4.0.44/helper-scripts/rack-preloader.rb:161:in `<module:App>'
App 30478 stderr: from /home/rails/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/passenger-4.0.44/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
App 30478 stderr: from /home/rails/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/passenger-4.0.44/helper-scripts/rack-preloader.rb:28:in `<main>'
The coffee-script
dependency can be removed if the jQuery library is converted to JS.
Need to investigate how to solve this warning, which appears during Capistrano deployment and RSpec tests, without having to add coffee-script
to the Gemfile.
Any plans to make this work in Rails 6?
Right now it won't install the gem because it says it's not compatible with Rails 6.
The options
and html_options
arguments should have default values of {}
, just like the standard select
method.
Currently, clicking the label does not put focus on the select field. The label and select fields should be connected in order to match standard form behavior.
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.