2009/10/6 Pål Bergström <[email protected]>: > > Leonardo Mateo wrote: >> 2009/10/6 P�l Bergstr�m <[email protected]>: >>> >>> Where do I put a custom class? >> It depends on what is it's purpose but, usually, you'll put them on >> your models directory. >> >>> How do I use it? >> Just like you use every class. >> >> -- >> 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 ~ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

