# Where to put database loading method?

**URL:** <https://www.ruby-forum.com/t/where-to-put-database-loading-method/89135>\
**Category:** Rails\
**Created:** [March 17, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/where-to-put-database-loading-method/89135 "2007-03-17T18:16:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 17, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/where-to-put-database-loading-method/89135/1 "2007-03-17T18:16:36Z")

</div>

Hi all,

I have a method in the model.rb that loads data for that model. I use  
script/runner to execute it. Should I be putting this method in the  
model controller instead ? Or put it in it’s own script in lib ?

Thanks for the help.

Vince
