
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
multiple_files_by_pete
Advanced tools
An agile way to implement multiple files uploads in a Ruby On Rails scaffold without the need to create additional tables
Add this line to your application's Gemfile:
gem 'multiple_files_by_pete'
And then execute:
$ bundle install
Ruby On Rails: 5, 6, 7
This gem does not work with SQLite database
Let's create a example for a Place scaffold:
rails new myapp --database=postgresql
bundle exec rake db:create
bundle exec rails g scaffold Place name:string description:text
gem 'multiple_files_by_pete'
bundle install
bundle exec rake 'multiple_files_by_pete[place]'
<script src='/multiple_files_by_pete/jquery-3.6.0.min.js'></script>
<link rel="stylesheet" href="/multiple_files_by_pete/bootstrap.min.css">
@files = PeteFile.get_object_files(@place)
<%= render partial: 'shared/files_by_pete', locals: {model: @place, files: @files, section: 'legal_files' ,label: 'Upload legal files'} %>
<%= render partial: 'shared/files_by_pete', locals: {model: @place, files: @files, section: 'extra_files' ,label: 'Upload extra files'} %>
<%= render 'shared/files_by_pete_js', model: @place, size_limit: 50%>
Watch this video to see how it works
Bug reports and pull requests are welcome on GitHub at https://github.com/peterconsuegra/multiple_files_by_pete. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
Everyone interacting in the MultipleFilesByPete project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that multiple_files_by_pete 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.