Ruby for Web app or Desktop app

Hello Responders.
i am a beginner to ruby as well as to this forum too . i just did some
minor research about why RUBY ? why choose RUBY ? whats new in it.
Whenever i do type in a word RUBY in google search there comes a
suggestion like RUBY on RAILS . so my mind changed to learn stuffs about
ruby on rails.

I went through some forums but got the same answer from everyone. RUBY
ON RAILS is a web development FRAMEWORK . once again i learnt stuffs
about what a framework is. There are lot of questions which is u know
like itching my mind.Varieties of answer from everyone. i dont know
which is the right one.

first if anyone wish to give me a reply … tell me solution for this.

just like java we run ruby programs in command prompt by moving to the
directory in cmd where ruby is installed.it is similar to java. so can
we create a desktop application by using it.i mean like a file searching
program which is default in windows . We can create the same file
searching program using java swing and playing with some string
functions isn’t it?
can we do the same with ruby .? thats my first one.

i will raise doubts on ruby on rails after i get cleared about the above
question.

If you add ruby to your PATH, you don’t need to go to its directory to
run it.

You can use Ruby to create desktop applications, more detail will depend
on the nature of the application. Console or GUI, using installed
interpreter or standalone executable…

The coding of a file searching app will change depending on the
operating system you intend to target. Generally you’ll use the tools
available in the native operating system for the indexing, and make
decisions with the help of Ruby’s String class.

Joel P. wrote in post #1133440:

If you add ruby to your PATH, you don’t need to go to its directory to
run it.

You can use Ruby to create desktop applications, more detail will depend
on the nature of the application. Console or GUI, using installed
interpreter or standalone executable…

The coding of a file searching app will change depending on the
operating system you intend to target. Generally you’ll use the tools
available in the native operating system for the indexing, and make
decisions with the help of Ruby’s String class.

" okay i can get it . but as per the sites like wikipedia what they said
was "Ruby is a programming language intended to create web applications
and ruby on rails is a framework thats developed on ruby . in that case
if rails is a framework it helps to do achieve some complex tasks that
cannot be done or achieved by simply using RUBY isn’t it.?

give me an example on what kind of complex issues that can be done using
RUBY on RAILS cannot be done using RUBY ? if you understand what i meant
.

As far as I know, everything in Rails can be done in Ruby, since Rails
is written in Ruby.

One of the things you’ll learn about Ruby is the way it works with
“gems”, or little packages of code that you can import into your
program.

Rails is conveniently written by developers who have poured their time
and expertise into writing great tools so you don’t have to write them
yourself. It’s a great tool and I recommend using it, although I would
also recommend understanding Ruby first.

Joel P. wrote in post #1133446:

As far as I know, everything in Rails can be done in Ruby, since Rails
is written in Ruby.

One of the things you’ll learn about Ruby is the way it works with
“gems”, or little packages of code that you can import into your
program.

Rails is conveniently written by developers who have poured their time
and expertise into writing great tools so you don’t have to write them
yourself. It’s a great tool and I recommend using it, although I would
also recommend understanding Ruby first.

“Oh thats simply cool. thanks brother.”