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

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.
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
shared
functions in application.rb. It looks very disorganised. And so I'm
seeking
your expertise for a better way to organise shared functions.

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

Many thanks.

--
Regards,

Yi
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.