lets use this example :
optional do
array :tags, class: String
hash :prefs do
boolean :smoking
boolean :view
end
end
I'd like to use custom validation on :smoking
I'm doing this in the validate method
How to add an error on key ":prefs -> :smoking" ?
Is it possible with add_error ?