Re: Custom class

Pål Bergström
Tue, 06 Oct 2009 09:48:08 -0000

Sijo kg wrote:
> Hi Pål Bergström
>
>   Can you paste the code?
>
> Sijo

It''s just a test code. In the file /lib/random.rb I have:

class Random

  def test
    "test"
  end

end

In the controller I try to call:

@test = Random.test