# Referential integrity in Rails

**URL:** <https://www.ruby-forum.com/t/referential-integrity-in-rails/150938>\
**Category:** Rails\
**Created:** [October 15, 2008, 12:58am UTC](https://www.ruby-forum.com/t/referential-integrity-in-rails/150938 "2008-10-15T00:58:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de0a6/32.png) [@marcos](https://www.ruby-forum.com/u/marcos)\
**Post date:** [October 15, 2008, 12:58am UTC](https://www.ruby-forum.com/t/referential-integrity-in-rails/150938/1 "2008-10-15T00:58:57Z")

</div>

Hi there

As you might guess, I come from the Java enterprise world. I’m  
considering using Rails for my next web app, and have to say I’m very  
impressed with the speed of development.

However, as I get past the basic tutorials/demos, I have yet to see  
good examples of a more complex domain model. Could anyone point me to  
some good references/resources please?

Thanks

Marcos

---

<div class="post-metadata">

**Author:** ![marcos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de0a6/32.png) [@marcos](https://www.ruby-forum.com/u/marcos)\
**Post date:** [October 15, 2008, 1:45am UTC](https://www.ruby-forum.com/t/referential-integrity-in-rails/150938/2 "2008-10-15T01:45:46Z")

</div>

On Oct 14, 6:26 pm, Marcos [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> However, as I get past the basic tutorials/demos, I have yet to see  
> good examples of a more complex domain model. Could anyone point me to  
> some good references/resources please?

I’m not sure what level of complexity you’re looking for, but one of  
the more well-known open source Rails projects that is at least a step  
or two above trivial examples is the Typo blog engine (http://  
[Typo -](http://typosphere.org/projects/show/typo)). Disclaimer - I’ve never looked at  
its code, and have no information on the quality of it whatsoever.

Additionally, while not full-on projects themselves, there are very  
well-written Rails plugins that do set up structures for DB  
persistence (the OAuth Rails plugin and Authenticated System plugins  
come immediately to mind). Those might be a good starting point.
