Forum: Ruby on Rails what's the best way to organise lots functions in applicatio

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.
Yi Tan (Guest)
on 2006-06-05 21:28
(Received via mailing list)
Hi all,

Please forgive me for this newbie question.

I'm developing an application on RoR, and found I got more and more
functions in application.rb. It looks very disorganised. And so I'm
your expertise for a better way to organise shared functions.

After reading some open source code, I found some experienced developers
using modules, and put codes in /lib folder. But I don't understander
very well. Do you know is there any articles on the net discussing this

Many thanks.


Brian H. (Guest)
on 2006-06-05 22:33
(Received via mailing list)
You might consider looking at modules. See the book "Pragmatic Ruby"
for examples of this.
This topic is locked and can not be replied to.