Skip to content
#

sanitization

Here are 75 public repositories matching this topic...

imranismail
imranismail commented Jul 7, 2019

Parameters should be able to support these declaratively.

I'm thinking along these lines:

params do
  requires :name, :string, only: ~w(john mary)
  requires :profession, :string, except: ~w(student engineer)
  requires :email, :string, matches: ~r/.+@.+/
end

The best place to introduce this is during the schema definition step.

Improve this page

Add a description, image, and links to the sanitization topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the sanitization topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.