
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
= ComboBox
Adds helpers for Rails views and controller in order to manage 'dynamic select'. It uses jQuery UI as support for inobtrusive use in forms. It's not the classic Autocompleter, its use is limited to belongs_to reflections.
== Rails 3.0
ComboBox requires the gem +jquery-rails+, so if you don't already use it: rails generate jquery:install --ui
Then install +combo_box+ in your app like +jquery-rails+: rails generate combo_box:install
Then the javascript and/or stylesheet files must be included in the application layout: <%= javascript_include_tag('combo_box') -%> <%= stylesheet_link_tag('combo_box') -%>
== Rails 3.1
Nothing to install. With the asset pipeline, there is no need to run generators or copy files. So for stylesheets:
*= require combo_box
And for javascripts:
*= require combo_box
== Usage
Classic usage in resource forms:
class OrdersController < ApplicationController search_for :client end
combo_box :order, :client
Usage in non-resource forms with personalized controller method:
class OrdersController < ApplicationController def search_for_orders orders = Order.find_all_by_number(params[:term]) render orders.collect{|r| {:label=>r.number, :id=>r.id}}.to_json end end
combo_box_tag "search", :search_for_orders
== Contributing to ComboBox
== Copyright
Copyright (c) 2011 Brice Texier. See LICENSE.txt for further details.
FAQs
Unknown package
We found that combo_box demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.