Forum: Ruby on Rails where to put database loading method?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
on 2007-03-17 19:16
(Received via mailing list)
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.

This topic is locked and can not be replied to.