Forum: Ruby on Rails How to use .rb in ROR

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3b80a21309877bb28bd84d8afb65b04c?d=identicon&s=25 Rama Singh (rama)
on 2007-03-15 04:17
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
This topic is locked and can not be replied to.