
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
handy_location_inputs
Advanced tools
Handy Location Inputs is a rails gem/engine for adding powerful location inputs to your forms. It allows you to guarentee your Country, State, and City names will be uniform without the UX penalties of Select Boxes.
Rails with turbolinks and bulma css. (Future versions will remove the dependency on Bulma.)
Add this line to your application's Gemfile:
gem 'handy_location_inputs'
And then execute:
$ bundle
Or install it yourself as:
$ gem install handy_location_inputs
First, add this line to your app/assets/javascripts/application.js manifest file.
// = require handy_location_inputs/input_controllers
Add Gon to your Gemfile gem "gon"
and add <%= include_gon %>
to the head tag of your application.
To use handy_location_inputs in a view, include HandyLocationInputs::Locatable
to that view's controller.
If the associated model is new, or has no location data yet, call country_list_to_client
to the controller action. This will pass the country list to the client.
If the model already has state and city data that you would like to pass to the client as well, call location_lists_to_client(your_model)
.
To trigger functionality in a form, include the class handy-location-inputs
somewhere on the page.
Each input needs an id of country-input
, state-input
, or city-input
respectively.
The dropdown for each input should look like this.
<div class="dropdown country-dropdown">
<div class="dropdown-menu" role="menu">
<div class="country-dropdown-content">
</div>
</div>
</div>
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that handy_location_inputs 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
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.