# How to create our own class and how to access that

**URL:** <https://discuss.rubyonrails.org/t/how-to-create-our-own-class-and-how-to-access-that/15275>\
**Category:** rubyonrails-talk\
**Created:** [July 4, 2007, 9:05am UTC](https://discuss.rubyonrails.org/t/how-to-create-our-own-class-and-how-to-access-that/15275 "2007-07-04T09:05:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hasham](https://avatars.discourse-cdn.com/v4/letter/h/2bfe46/32.png) [@Hasham](https://discuss.rubyonrails.org/u/Hasham)\
**Post date:** [July 4, 2007, 9:05am UTC](https://discuss.rubyonrails.org/t/how-to-create-our-own-class-and-how-to-access-that/15275/1 "2007-07-04T09:05:58Z")

</div>

For Rails, you can create your own custom classes and put them in lib folder. from lib you can automatically access your classes in controllers
