On Thu, Sep 8, 2011 at 7:00 AM, coolesting
<coolesting-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi, all.
>
> Sometime we will write my custom code that maybe is a class or function,
and
> then use this code we need at certain moment.
> So, where to store the code ? how and where to import my custom code? Could
> you give a example for explaining ?
Place it on the lib/ directory.
Then, require it where you need it.
Hope it helps.
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.