
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
ActiveAdmin-Globalize3-inputs
Advanced tools
This small hack implements has_many friendly Globalize3 helper for ActiveAdmin.
Admittedly it generates structure that jQueryUI tabs() expect. However the whole idea is pretty simple and you should be able to change it to suit your needs.
Add this line to your application's Gemfile:
gem 'ActiveAdmin-Globalize3-inputs'
And then execute:
$ bundle
ActiveAdmin.register Gallery do
form do |f|
f.globalize_inputs :translations do |lf|
lf.inputs do
lf.input :title
lf.input :description
lf.input :locale, :as => :hidden
end
end
f.has_many :photos do |photo|
photo.inputs do
photo.input :image, :as => :file
end
photo.globalize_inputs :translations do |lp|
lp.inputs do
lp.input :description
lp.input :locale, :as => :hidden
end
end
end
f.buttons
end
end
As you can see, there's no special option for locales. The list is taken from I18n.available_locales
, so you'd probably want to define the locales your application works with somewhere.
FAQs
Unknown package
We found that ActiveAdmin-Globalize3-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
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.