Common Code Files

S

smoon

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

pat eyler

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/show/HomePage for info about both).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,919
Members
47,460
Latest member
eibafima

Latest Threads

Top