How to use .rb in ROR

I want to use IceRuby in RubyOnRail.
I got success in getting output using IceRuby in “tst.rb” example file.
but i get output in my command prompt.
My prob, is i want to use my example script “tst.rb” in my RubyonRail
controller, but i don’t know where to put my example script, in which
folder & how i can call my “tst.rb” in my controller.
my example script is like this :

require ‘Ice’

Ice::loadSlice(‘D3I.ice’)

class Client < Ice::Application
def run(args)



end
app = Client.new()
exit(app.main(ARGV, “config.client”))

I don’t know how i call this script in my controller

Can you help me.

Thanks

Rama