# \[ANN\] Dr Nicâ?s Magic Models 0.8 - Validate Anything

**URL:** <https://www.ruby-forum.com/t/ann-dr-nica-s-magic-models-0-8-validate-anything/69501>\
**Category:** Ruby\
**Created:** [September 21, 2006, 1:24pm UTC](https://www.ruby-forum.com/t/ann-dr-nica-s-magic-models-0-8-validate-anything/69501 "2006-09-21T13:24:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicwilliams](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/aca169/32.png) [@nicwilliams](https://www.ruby-forum.com/u/nicwilliams)\
**Post date:** [September 21, 2006, 1:24pm UTC](https://www.ruby-forum.com/t/ann-dr-nica-s-magic-models-0-8-validate-anything/69501/1 "2006-09-21T13:24:02Z")

</div>

In the first run of the sell-out Magic Models - â??I canâ??t believe its an  
ActiveRecordâ? - Super Show - you were amazed as we stripped away the  
necessary essentials of an ActiveRecord - right in front of your eyes -  
the necessary became unnecessary.

We removed the validates\_presence\_of validationsâ?¦ and the Magic Model  
still validated.

We removed the has\_many, belongs\_to, and has\_many :through associationsâ?¦  
and the Magic Model still associated.

We removed the actual class definition itself - the very thing that  
provides the ActiveRecord CRUD layerâ?¦ and the Magic Model still CRUDded.

In the new Magic Models, Virtual Validations get Virtuous!

> > g = Group.new  
> > g.name = “x” \* 51  
> > =\> "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxâ?  
> > g.valid?  
> > =\> false  
> > g.errors.full\_messages  
> > =\> [“Name is too long (maximum is 50 characters)”]

All this and more in 0.8.0 of Dr Nic’s Magic Models  
[http://drnicwilliams.com/2006/09/21/dr-nic-magic-models-validate-anything-anytime-anywhere/](http://drnicwilliams.com/2006/09/21/dr-nic-magic-models-validate-anything-anytime-anywhere/)

Its magic like this that makes programming fun 🙂

---

<div class="post-metadata">

**Author:** ![nicwilliams](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/aca169/32.png) [@nicwilliams](https://www.ruby-forum.com/u/nicwilliams)\
**Post date:** [September 21, 2006, 8:18pm UTC](https://www.ruby-forum.com/t/ann-dr-nica-s-magic-models-0-8-validate-anything/69501/2 "2006-09-21T20:18:56Z")

</div>

On 9/21/06, Dr Nic [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> We removed the actual class definition itself - the very thing that  
> provides the ActiveRecord CRUD layer? and the Magic Model still CRUDded.  
> …

> Its magic like this that makes programming fun 🙂

You don’t happen to be the guy in the white jacket in those new Hummer  
H3 ads are you?

–  
Rick DeNatale

My blog on Ruby  
[http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)

---

<div class="post-metadata">

**Author:** ![nicwilliams](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/aca169/32.png) [@nicwilliams](https://www.ruby-forum.com/u/nicwilliams)\
**Post date:** [September 21, 2006, 8:27pm UTC](https://www.ruby-forum.com/t/ann-dr-nica-s-magic-models-0-8-validate-anything/69501/3 "2006-09-21T20:27:25Z")

</div>

> You don’t happen to be the guy in the white jacket in those new Hummer  
> H3 ads are you?

I can’t confirm or deny. Got a link to the ad on youtube or somewhere?

---

<div class="post-metadata">

**Author:** ![nicwilliams](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/aca169/32.png) [@nicwilliams](https://www.ruby-forum.com/u/nicwilliams)\
**Post date:** [September 23, 2006, 2:16am UTC](https://www.ruby-forum.com/t/ann-dr-nica-s-magic-models-0-8-validate-anything/69501/4 "2006-09-23T02:16:45Z")

</div>

On 9/21/06, Dr Nic [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > You don’t happen to be the guy in the white jacket in those new Hummer  
> > H3 ads are you?
> 
> I can’t confirm or deny. Got a link to the ad on youtube or somewhere?

## Sorry, I’ve only seen it on TeeVee.

Rick DeNatale

My blog on Ruby  
[http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)
