Non-model methods go where?

Hi all –

I collect two pieces of data from users, then perform a calculation on
this data. Where should I put this calculator this method?

Helpers seem view-oriented, and the result here is not being sent to the
user. Anyway, I tried putting the method in a helper and got a “no
method” error.

At the moment, I have it in another Model, but this seems really lame to
me, so I thought I’d ask.

– Joshua

Hello Joshua !

2006/1/25, Joshua W. [email protected]:

I collect two pieces of data from users, then perform a calculation on
this data. Where should I put this calculator this method?

You can put anything in lib/. Just put a class, or some helper
methods and require that file. You’ll then have access to this data.

If you told us more about the data, we might be able to offer more help.

Hope that helps !