# Including user defined classes

**URL:** <https://www.ruby-forum.com/t/including-user-defined-classes/109351>\
**Category:** Rails\
**Created:** [July 13, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/including-user-defined-classes/109351 "2007-07-13T17:43:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jotape](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c77e96/32.png) [@jotape](https://www.ruby-forum.com/u/jotape)\
**Post date:** [July 13, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/including-user-defined-classes/109351/1 "2007-07-13T17:43:26Z")

</div>

Hello again to all!

I have made some classes in my projectm and included the in  
environment.rb to be included.

They live in /lib, in my project.

I’m doing a reference in one of them to a class in another one, and I  
get a const not defined exceptions. I’ve made a require in the top of  
the one that’s using the other.

Any thoughts?  
Thanks
