
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.
rails_admin_dropzone
Advanced tools
Easy to use integration of drag&drop files upload via dropzone.js for rails_admin
Add in Gemfile
gem 'rails_admin_dropzone'
For versions of rails below 5, use version V1.0.1 Tested with Rails 6
class Album < ActiveRecord::Base
has_many :photos
end
class Photo < ActiveRecord::Base
belongs_to :album
end
Add this method create_associated_image
in your model, example Album
, that will contain the upload images and change the associations and attributes
class Album < ActiveRecord::Base
has_many :photos
# Method
def create_associated_image(image)
photos.create(image: image)
end
end
Add in config/initialisers/rails_admin.rb
RailsAdmin.config do |config|
config.actions do
dashboard
index
new
dropzone do
only YOUR_MODEL # Example Album
end
show
edit
delete
end
end
and "Voalá"
Bug reports and pull requests are welcome on GitHub at https://github.com/luizpicolo/rails_admin_dropzone. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that rails_admin_dropzone 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
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.