Leonardo Mateo wrote:
> 2009/10/6 Pål Bergström <[email protected]>:
>>>
>>> --
>>> Leonardo Mateo.
>>> There's no place like ~
>>
>> I can't make it work. I've put in the lib directory. Do I need to make a
>> require or something? I get an error "private method `test' called for
> Of course you have to require them. Probably on your environment.rb if
> you want to require it only once, but you should see if that worth the
> payload. If the class is "too heavy"you should require it only when
> you're going to use it.
> 
> 
> --
> Leonardo Mateo.
> There's no place like ~

I see. I have another solution, a custom Crypto-class, in another app 
similar to this without a require (as I can see now, was a while ago) 
and that works. It's also in /lib. Can't understan why that works and 
now it doesn't.

I thought that custom classes in /lib or /model was included by default 
without require.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to