Socket
Book a DemoInstallSign in
Socket

client_side_validations-mongoid

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

client_side_validations-mongoid

14.1.0
bundlerRubygems
Version published
Maintainers
2
Created
Source

ClientSideValidations-Mongoid

Gem Version Build Status Maintainability Coverage Status

Mongoid plugin for ClientSideValidations

Installation

In your Gemfile add the following:

gem 'mongoid'
gem 'client_side_validations'
gem 'client_side_validations-mongoid'

Order matters here. Mongoid and ClientSideValidations need to be required before ClientSideValidations-Mongoid.

Follow the remaining installation instructions for ClientSideValidations

Usage

The usage is the same as ClientSideValidations, just pass validate: true to the form builder

<%= form_for @book, validate: true do |book| %>
  <%= book.input :name %>
<% end %>

Per-input options are done with :validate

<%= book.input :name, validate: { presence: true, uniqueness: false } %>

Authors

Brian Cardarella

Geremia Taglialatela

We are very thankful for the many contributors

Versioning

This gem follows Semantic Versioning

Want to help?

Please do! We are always looking to improve this gem. Please see our Contribution Guidelines on how to properly submit issues and pull requests.

DockYard, LLC © 2012-2021

@dockyard

Licensed under the MIT license

FAQs

Package last updated on 01 May 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.