You are here: Browse Railsplugins Deep Verify
= DeepVerify
Extends verify method to support verifying deeper parameter chains. The default verify method only allows checking for top-level keys in parameters. With this plugin that limitation goes away.
= Usage
verify :params => { :record => { :field => :subfield } }
To verify something that could is accessed through params:record[:subfield]
It’s also possible to check for several subfields:
verify :params => { :record => { :field1 => [ :subfield, :subfield2 ], :field2 => :subfield } }
= Author
NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly