If it''s just a helper thing, you could put it in your
application_helpper.rb file. If it needs to be available to models,
you could put it in lib/ and require it in environment.rb. Then you
can use it from anywhere in your app.
Tyler
On 8/10/05, Steve Downey
<sldowney-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
wrote:> I have a text formatting method that I want available to to models,
> helpers, etc.
>
> My limited Ruby experience says it would go in a module, but in which
> directory and how would I reference it from my modes and helpers?
>
> Thanks.
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>