Mixins

If I want to write a function which will be available to views, I write
a helper function in one of the places set aside or that very task by
Rails.

If I want to write a little suite of functions to be mixed in by a
number of model classes (but not all), where do I put them? Plug-ins
look like AN answer, but they also seem a little heavyweight for simple,
project-specific tasks.

On 11 May 2006, at 13:02, DJ Tequila wrote:

If I want to write a function which will be available to views, I
write a helper function in one of the places set aside or that very
task by Rails.

If I want to write a little suite of functions to be mixed in by a
number of model classes (but not all), where do I put them? Plug-
ins look like AN answer, but they also seem a little heavyweight
for simple, project-specific tasks.

I put mine in RAILS_ROOT/lib

Chris