# Using a gem as the model Rails 3/datamapper

**URL:** <https://www.ruby-forum.com/t/using-a-gem-as-the-model-rails-3-datamapper/188471>\
**Category:** Rails\
**Created:** [May 12, 2010, 2:55pm UTC](https://www.ruby-forum.com/t/using-a-gem-as-the-model-rails-3-datamapper/188471 "2010-05-12T14:55:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Don\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f04885/32.png) [@Don\_F](https://www.ruby-forum.com/u/Don_F)\
**Post date:** [May 12, 2010, 2:55pm UTC](https://www.ruby-forum.com/t/using-a-gem-as-the-model-rails-3-datamapper/188471/1 "2010-05-12T14:55:39Z")

</div>

I have a non-rails ruby application that has many models that we now  
need to create a rails application for. These models are managed as a  
gem. How can that gem be used in a rails3 app? How do you specify that  
gem and put it somewhere where the rails can find it? Was making the  
model library a gem the right thing to do. It has worked well for us  
so far.

Don F.

---

<div class="post-metadata">

**Author:** ![Don\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f04885/32.png) [@Don\_F](https://www.ruby-forum.com/u/Don_F)\
**Post date:** [May 12, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/using-a-gem-as-the-model-rails-3-datamapper/188471/2 "2010-05-12T21:56:38Z")

</div>

can anyone help on this?
