
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.
A form helper for the enum field of Rails model.
You can easily generate select tag which has enum field options.
Add this line to your application's Gemfile:
gem 'enum_select_rails'
class User
enum gender: {
female: 2,
male: 1,
other: 9
}
end
<%= f.enum_select :gender %>
Automatically apply i18n text into options text.
This feature is depends on enum_help.
# Gemfile
gem 'enum_help'
# application.rb
# i18n
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}').to_s]
# config/locales/models/user/ja.yml
ja:
activerecord:
models:
user: ユーザー
attributes:
user:
gender: 性別
enums:
user:
gender:
female: 女性
male: 男性
other: その他
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that enum_select_rails 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.