Sorry, I should have said where all the 'models' are.
Sorry if I am little dense here but it's the first time I do this and
I want to make sure I understand.
I create a module ('my_module.rb') with my code and just drop the file
in folder 'lib', not in 'lib/tasks'. Then I issue a require
'my_module' in my models and I'm ready to rock & roll?
Thanks again.
On Sep 10, 10:51 pm, "Maurício Linhares" <[EMAIL PROTECTED]>
wrote:
> No, you could put it at the "lib" folder and add a require for it in
> your user model.
>
> Putting your module at the helpers folder would make it be included in
> your view helpers, and i think this is not what you're looking for :)
>
> On Wed, Sep 10, 2008 at 11:40 PM, pepe <[EMAIL PROTECTED]> wrote:
>
> > Thanks Mauricio,
>
> > If I write the module, do I just put it in the folder where all the
> > modules are?
>
> --
> Maurício Linhareshttp://alinhavado.wordpress.com/(pt-br)
> |http://blog.codevader.com/(en)
> João Pessoa, PB, +55 83 8867-7208
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---