where to put class to run in everything

S

shawn bright

Hey there all,

I am using ruby to run both the processing engine for my companies
data provider, ruby in most of the housekeeping cron scripts, and ruby
on rails powers the website. This is all on an Ubuntu linux server.

The thing is, we host a few domain websites that, although very
different, use a lot of the shared code.

What I would like to do is have all my ruby classes and functions that
are common to everything be in one location that I can require from.
I just don't know how I would use them for things like Rails that has
all models in one folder, controllers in another, etc..

Anyone have a solution to share?
thanks
 
M

Michael Fellinger

Hey there all,

I am using ruby to run both the processing engine for my companies
data provider, ruby in most of the housekeeping cron scripts, and ruby
on rails powers the website. This is all on an Ubuntu linux server.

The thing is, we host a few domain websites that, although very
different, use a lot of the shared code.

What I would like to do is have all my ruby classes and functions that
are common to everything be in one location that I can require from.
I just don't know how I would use them for things like Rails that has
all models in one folder, controllers in another, etc..

Anyone have a solution to share?
thanks

put it in your filesystem at a place everybody has read access to,
then use the almighty require
 

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

Forum statistics

Threads
474,184
Messages
2,570,978
Members
47,578
Latest member
LC_06

Latest Threads

Top