[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Common Code Files

smoon

3/16/2005 9:21:00 PM

I'm new to ruby and rails. My question is, where in rails do you put
common classes that may be used in several controllers/models? For
example if I create a calendar library that does some fancy stuff for
me, where would that logically go?

Thanks a million.

1 Answer

pat eyler

3/16/2005 9:47:00 PM

0

On Thu, 17 Mar 2005 06:24:51 +0900, smoon <scotty.moon@gmail.com> wrote:
> I'm new to ruby and rails. My question is, where in rails do you put
> common classes that may be used in several controllers/models? For
> example if I create a calendar library that does some fancy stuff for
> me, where would that logically go?

If you write them, they should go in /lib. If they come from an
external source, they should go into /vendor.

BTW, you might want to try asking things like this on the Ruby On
Rails irc channel or the mailing list (see
http://wiki.rubyonrails.com/rails/sho... for info about both).

>
> Thanks a million.
>
>


--
thanks,
-pate
-------------------------
ParseTree is a little brown stinky ferret that digs down a hole and
violently rips the AST away from the warm bosom of ruby. In other
words, we cheat, they don't.