> -----Original Message-----
> From: list-bounce / example.com
> [mailto:list-bounce / example.com] On Behalf Of Asdf Fsda
> Sent: Wednesday, April 23, 2008 9:00 AM
> To: ruby-talk ML
> Subject: Shoes and require
>
> Helo
>
> I'm playing a little bit around with shoes.
> Their i have a problem with require. When i want to require a
> file witch
> is in the same Directory like the Shoes.app File i get a "no such file
> to load error". Is it not possible to require files?
>
> shoesTest.rb:
> require "shoesTestb"
>
> Shoes.app do
>   $app =3D self
>   para "lalala"
>   para lala
> end
>
> shoesTestb.rb:
> def lala
>   'lalafunction'
> end

Apparently, your current directory is not the same as where your files are =
and you are invoking your application by path. If so, you need to do the fo=
llowing before 'require':

$: << File.dirname(__FILE__)

Gennady.

> --
> Posted via http://www.ruby-forum.com/.
>
>