# Design Question

**URL:** <https://www.ruby-forum.com/t/design-question/116446>\
**Category:** Rails\
**Created:** [October 5, 2007, 4:54pm UTC](https://www.ruby-forum.com/t/design-question/116446 "2007-10-05T16:54:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3be4f8/32.png) [@jrm](https://www.ruby-forum.com/u/jrm)\
**Post date:** [October 5, 2007, 4:54pm UTC](https://www.ruby-forum.com/t/design-question/116446/1 "2007-10-05T16:54:14Z")

</div>

Hi,

I am building an app that contains a mix of functionality that will be  
accessed via the browser and a range of backend processes that I  
envisage will be run with script\runner.

I am puzzled where to put code for the background processes - the  
background process touch a variety of models and do not require any  
views.

Any suggestions where to put these miscellaneous classes.

Cheers

James

---

<div class="post-metadata">

**Author:** ![jrm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3be4f8/32.png) [@jrm](https://www.ruby-forum.com/u/jrm)\
**Post date:** [October 5, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/design-question/116446/2 "2007-10-05T16:58:21Z")

</div>

jrm wrote:

> Any suggestions where to put these miscellaneous classes.

Either put them in the lib folder, or in the model folder and don’t  
inherit ActiveRecord::Base.

BTW that’s the meaning of Model View Controller. The Model is just a  
bunch of objects. Some persist (in a database) and some don’t.

–  
Phlip  
[http://www.oreilly.com/catalog/9780596510657/](http://www.oreilly.com/catalog/9780596510657/)  
^ assert\_xpath

---

<div class="post-metadata">

**Author:** ![jrm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3be4f8/32.png) [@jrm](https://www.ruby-forum.com/u/jrm)\
**Post date:** [October 5, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/design-question/116446/3 "2007-10-05T17:18:53Z")

</div>

Thanks Phlip
