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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
317094104136ef2e6487bf5a61fb8217?d=identicon&s=25 forgetta@gmail.com (Guest)
on 2007-03-17 18: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.

Vince
This topic is locked and can not be replied to.