# How to use .rb in ROR

**URL:** <https://www.ruby-forum.com/t/how-to-use-rb-in-ror/88866>\
**Category:** Rails\
**Created:** [March 15, 2007, 4:17am UTC](https://www.ruby-forum.com/t/how-to-use-rb-in-ror/88866 "2007-03-15T04:17:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rama](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ccd318/32.png) [@rama](https://www.ruby-forum.com/u/rama)\
**Post date:** [March 15, 2007, 4:17am UTC](https://www.ruby-forum.com/t/how-to-use-rb-in-ror/88866/1 "2007-03-15T04:17:33Z")

</div>

# 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
