On Thu, Sep 8, 2011 at 7:00 AM, coolesting <coolest...@gmail.com> 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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to