Ruby on Rails Sunday, November 8, 2015

Hi Deepak,

Generally I prefer chosen.js for static select list. It works out of the box simply by adding 'chosen-select' class to select tag. If your list is massivly big ajax-chosen.js is best choice. You can filer select result by sending search query to server when user start typing on the text box.

https://harvesthq.github.io/chosen/
https://github.com/meltingice/ajax-chosen

There is also typeahead-rails gem. It is also based on js solution which I haven't tried but worth for you to look at.

https://github.com/torbjon/typeahead-rails

Thanks
Anand

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/103f0a25-f35f-4662-8d36-5eed92e8b099%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment