search for: validates_all_associated

Displaying 3 results from an estimated 3 matches for "validates_all_associated".

2006 Aug 14
2
Plugins: Validation Reflection and Client-Side Validation
...plugin adds reflective access to validations - ModelClass.reflect_on_all_validations - ModelClass.reflect_on_validations_for(:property) = Deprecation Notice Version 0.1 had supplied three methods - validates_presence_of_mandatory_content_columns - validates_lengths_of_string_attributes - validates_all_associated These have been removed. Please use the Enforce Schema Rules plugin instead http://enforce-schema-rules.googlecode.com/svn/trunk/enforce_schema_rules/ Client Side Validation ====================== Version 0.2, 2006-08-06 Requires Validation Reflection plugin. This plugin is only a tool...
2006 Jul 28
4
Validation Reflection plugin
...lClass.reflect_on_all_validations - ModelClass.reflect_on_validations_for(:property) (2) It provides "declarative" methods for defining validations based on database metadata - validates_presence_of_mandatory_content_columns - validates_lengths_of_string_attributes - validates_all_associated (3) It reflects validation information into the class attributes of of HTML elements generated from rhtml templates. See test/instance_tag_validations_test.rb for what this looks like. Yes, for validates_format_of it gets nasty. Installation: $ script/plugin install \ http://www.sch...
2006 Jul 27
9
Introspecting validates_presence_of
Hello people, I''d like to detect whether an attribute of a model has vaildates_presence_of applied to it so I can automatically apply a mandatory (*) to the field...it doesn''t look easy...any ideas? Cheers, -- Dan Webb http://www.danwebb.net