
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
= WillFilter
will_filter is a Rails engine plugin that provides a GUI for filtering your ActiveRecord models.
== Preamble
If you ever had to build an admin tool for your web site that displayed a list of objects that can be filtered using various criteria, this plugin will make your life easier. Adding a filtered page can now be a matter of adding two lines of code - one to your controller and one to your view. See examples below.
== Installation Instructions
Add the following gems to your Gemfile:
gem 'will_filter' gem 'kaminari'
And run:
$ bundle
To configure and initialize will_filter engine, run the following commands:
$ rails generate will_filter
$ rake db:migrate
At the top of your routes.rb file, add the following line:
mount WillFilter::Engine => "/will_filter"
== Examples
To add a filtered result-set to your controller use the following method call:
class UsersController < ApplicationController
def index
@users = User.filter(:params => params)
end
end
Note: 'User' is a Rails ActiveRecord model
Now all you have to do is create a view for this action and add the following tag where you want the filter to be rendered:
<%= will_filter_tag(@users) %>
And optionally you can do (for results table):
<%= will_filter_table_tag(@users) %>
That's it. This will render a filter box with various conditions, operators and values for the model object you selected.
= Documentation
Please read the following document to learn more about filter customization:
https://github.com/berk/will_filter/wiki/Customizing-Filters
Please read the following document to learn more about table tag customization:
https://github.com/berk/will_filter/wiki/Customizing-Table-View
= Dummy Application
This plugin comes with a dummy test project. To try out some of the examples, run the following commands:
$ git clone git://github.com/berk/will_filter.git
$ cd will_filter/test/dummy
$ rake db:migrate
$ rake samples:init
$ rails server
Open your browser and point to:
If you have any questions, comments or suggestions, email me at theiceberk@gmail.com
== Authors and credits
Authors:: Michael Berkovich
FAQs
Unknown package
We found that will_filter 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.