
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
activeadmin_reorderable
Advanced tools
Drag and drop to reorder your ActiveAdmin tables.
Your resource classes must respond to insert_at
ala the acts_as_list
API. You don't need to use acts_as_list
, but if you don't, make sure to define insert_at
.
gem 'activeadmin_reorderable'
to Gemfile
and run bundle install
import "activeadmin_reorderable"
to JS entrypoint (a JS file that is included for activeadmin)@import "activeadmin_reorderable";
in your CSS style fileNOTE: no need to pin the import in your application. That's handled internally by the gem.
gem 'activeadmin_reorderable'
to Gemfile
and run bundle install
#= require activeadmin_reorderable
to app/assets/javascripts/active_admin.js.coffee
@import "activeadmin_reorderable";
as the last @import
statement in app/assets/stylesheets/active_admin.css.scss
npm install --save activeadmin_reorderable
or yarn add activeadmin_reorderable
import "activeadmin_reorderable"
to your JS pack file@import "activeadmin_reorderable/app/assets/styleseehts/activeadmin_reorderable.scss";
to your CSS style fileparts.rb
ActiveAdmin.register Part do
reorderable # Necessary to support reordering in a subtable within Widget below
end
widgets.rb
ActiveAdmin.register Widget do
config.sort_order = 'position_asc' # assuming Widget.insert_at modifies the `position` attribute
config.paginate = false
reorderable
actions :index, :show
# Reorderable Index Table
index as: :reorderable_table do
column :id
column :name
end
show do |widget|
attributes_table do
row :id
row :name
end
# Reorderable Subtable
# Note: you must include `reorderable` in the ActiveAdmin configuration for the resource
# being sorted. See the `Part` example above this code block.
reorderable_table_for widget.parts do
column :name
column :cost
end
end
end
See CONTRIBUTING.md
FAQs
Unknown package
We found that activeadmin_reorderable demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.