Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
= 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.