# Creation and validation of object instances with has\_many an

**URL:** <https://www.ruby-forum.com/t/creation-and-validation-of-object-instances-with-has-many-an/89833>\
**Category:** Rails\
**Created:** [March 23, 2007, 1:01am UTC](https://www.ruby-forum.com/t/creation-and-validation-of-object-instances-with-has-many-an/89833 "2007-03-23T01:01:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jens](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d2c977/32.png) [@jens](https://www.ruby-forum.com/u/jens)\
**Post date:** [March 23, 2007, 1:01am UTC](https://www.ruby-forum.com/t/creation-and-validation-of-object-instances-with-has-many-an/89833/1 "2007-03-23T01:01:35Z")

</div>

Hello everybody,

I am slowly beginning to understand some principles behind Ruby and  
Rails and am working on my first project. It’s basically this:

Users register for an event, with personal information, preferences  
and so on. Then the backend office modifies their data based on  
whether they have paid (for example).

For example every user can register as a normal visitor, volunteer,  
technician or several other options. So I have

class User \<\< AR::Base
