Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
etandrib-livevalidation
Advanced tools
LiveValidation is a plugin which allows automatic integration of your Rails application with Javascript library LiveValidation[http://www.livevalidation.com/]. This library implements client-side form validation and you can see a demo in its site.
This plugin generates the needed Javascript code to run client-side the validations you have already defined in your models (with Rails validation helpers) to run them server-side, and redefines form helpers to automaticaly include that Javascript code. You have not to write your validations twice so you can keep DRY. And if you have 1) used Rails validation helpers to validate your models, and 2) used Rails form helpers to create your forms, you only have to install this plugin to get your forms validated both server and client-side!
== A little HOWTO
Install the plugin or the gem dependency:
script/plugin install git://github.com/etandrib/livevalidation.git
OR
config.gem "livevalidation", :lib => "etandrib/livevalidation", :version => ">= 1.3.0", :source => "http://gems.github.com"
Use the rake task to install the Javascript and CSS files in the public folder
rake livevalidation:install
Modify your application header to include at least the Prototype and LiveValidation Javascript libraries. Also add the LiveValidation stylesheet.
<%= javascript_include_tag 'prototype', 'live_validation' %> <%= stylesheet_link_tag 'live_validation' %>
Enjoy! You can know use the default Rails form helpers and validation methods which will automatically call on the LiveValidation scripts and styles.
You can disable live validation for a given field using :live => false:
<%= f.text_field :name, :live => false %>
You can also reverse this schema so the default is no validation by including the following in your config/environment.rb:
ActionView::live_validations = false
and enabling it only for some fields:
<%= f.text_field :name, :live => true %>
== Supported validations
== Supported form helpers
== Author
Gemification by {Nate Bird}[http://etandrib.github.com]. Plugin written by {Sergio Gil}[http://www.lacoctelera.com/porras]. The LiveValidation library is maintained by {Alec Hill}[http://www.livevalidation.com].
== License
LiveValidation is licensed under the terms of the {MIT License}[http://www.opensource.org/licenses/mit-license.php].
Copyright (c) 2007 Sergio Gil
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Unknown package
We found that etandrib-livevalidation demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.