# How does ruby

**URL:** <https://www.ruby-forum.com/t/how-does-ruby/186782>\
**Category:** Ruby\
**Created:** [February 26, 2008, 3:01am UTC](https://www.ruby-forum.com/t/how-does-ruby/186782 "2008-02-26T03:01:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@ronald](https://www.ruby-forum.com/u/ronald)\
**Post date:** [February 26, 2008, 3:01am UTC](https://www.ruby-forum.com/t/how-does-ruby/186782/1 "2008-02-26T03:01:52Z")

</div>

hi, i’m a noob to ruby and i have read a few things about it.

id like to know how to make a program that sums two numbers by  
inserting them and then ruby displays them.

if anyone can help, would be really apprecciated.

thanks.

---

<div class="post-metadata">

**Author:** ![ronald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@ronald](https://www.ruby-forum.com/u/ronald)\
**Post date:** [February 26, 2008, 3:08am UTC](https://www.ruby-forum.com/t/how-does-ruby/186782/2 "2008-02-26T03:08:19Z")

</div>

Ronald wrote:

> hi, i’m a noob to ruby and i have read a few things about it.
> 
> id like to know how to make a program that sums two numbers by  
> inserting them and then ruby displays them.
> 
> if anyone can help, would be really apprecciated.
> 
> thanks.

Welcome to Ruby!

Instead of answering your question directly, let me point you to this  
tutorial: [Learn to Program, by Chris Pine](http://pine.fm/LearnToProgram/). This will answer your question  
and then some!

---

<div class="post-metadata">

**Author:** ![ronald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@ronald](https://www.ruby-forum.com/u/ronald)\
**Post date:** [February 26, 2008, 3:12am UTC](https://www.ruby-forum.com/t/how-does-ruby/186782/3 "2008-02-26T03:12:13Z")

</div>

Ronald wrote:

> hi, i’m a noob to ruby and i have read a few things about it.
> 
> id like to know how to make a program that sums two numbers by  
> inserting them and then ruby displays them.
> 
> if anyone can help, would be really apprecciated.
> 
> thanks.

How do you sum two numbers by ‘inserting’ them?

---

<div class="post-metadata">

**Author:** ![ronald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@ronald](https://www.ruby-forum.com/u/ronald)\
**Post date:** [February 26, 2008, 3:24am UTC](https://www.ruby-forum.com/t/how-does-ruby/186782/4 "2008-02-26T03:24:44Z")

</div>

7stud – wrote:

> How do you sum two numbers by ‘inserting’ them?

I think what he means is that he wants to ‘get’ two numbers from user  
input, perform the math, and then ‘puts’ the product/sum 😉

The suggestion to read a few tutorials is definitely valid; the OP  
should also have a look at some of the links below (some are for Rails,  
most are just Ruby):

> **[Learning Ruby](https://www.oreilly.com/library/view/learning-ruby/9780596529864/)**
>
> You don't have to know everything about a car to drive one, and you don't need to know everything about Ruby to start programming with it. Written for both experienced … - Selection from Learning Ruby \[Book\]

> **[Ajax on Rails](https://www.oreilly.com/library/view/ajax-on-rails/0596527446/)**
>
> Learn to build dynamic, interactive web applications using the two most important approaches to web development today: Ajax and the phenomenally efficient Ruby on Rails platform. This book teaches intermediate … - Selection from Ajax on Rails \[Book\]

> **[Top Ruby on Rails Tutorials - Digital Media Minute](https://www.digitalmediaminute.com/article/1816/top-ruby-on-rails-tutorials)**
>
> A former student asked me a few days ago how I learned Ruby on Rails. The answer was that I simply read a lot of great tutorials. So in the spirit of sharing, here is the tutorial I found most useful: Intro to Ruby on Rails – Scott Chow offers his...

[http://wiki.rubyonrails.org/rails/pages/Tutorial](http://wiki.rubyonrails.org/rails/pages/Tutorial)  
[http://www.ruby-lang.org/en/documentation/quickstart/](http://www.ruby-lang.org/en/documentation/quickstart/)  
[http://www.poignantguide.net/ruby/](http://www.poignantguide.net/ruby/)  
[http://typosphere.org/articles/2007/08/26/screenshots](http://typosphere.org/articles/2007/08/26/screenshots)  
[http://mongrel.rubyforge.org/](http://mongrel.rubyforge.org/)  
[http://developer.apple.com/tools/rubyonrails.html](http://developer.apple.com/tools/rubyonrails.html)  
[http://www.caliban.org/ruby/rubyguide.shtml](http://www.caliban.org/ruby/rubyguide.shtml)

> **[Learn How to Blog and Build Websites for Profit!](https://heyblogging.com/)**
>
> Ready to take your blogging skills to the next level? Learn how to build a website that generates income and sets you up for success.

> **[Why AJAX Isn’t Enough — Smashing Magazine](https://www.smashingmagazine.com/2015/01/why-ajax-isnt-enough/)**
>
> AJAX calls have moved user interaction on the Web a huge step forward: We no longer need to reload the page in response to each user input. Using AJAX, we can call specific procedures on the server and update the page based on the returned values,...

> **[activerecord\_cheatsheet.pdf](https://slash7.com/cheats/activerecord_cheatsheet.pdf)**
>
> 51.59 KB

[http://sl33p3r.free.fr/tutorials/rails/wiki/wiki-en.html](http://sl33p3r.free.fr/tutorials/rails/wiki/wiki-en.html)  
[http://betterexplained.com/articles/starting-ruby-on-rails-what-i-wish-i-knew/](http://betterexplained.com/articles/starting-ruby-on-rails-what-i-wish-i-knew/)
