Ruby Tutorials

Getting started with Ruby on rails

  • 2008-10-03
  • Comments
  • Emiley J.
  • 56

There is a one-click Ruby installer. You can find it here: http://www.ruby-lang.org/en/downloads/. After you download it, double-click it in Windows Explorer to run it, and then follow the directions. After installing Ruby, close any command-line windows, open a new one, and then follow the directions above to check the installation.
Read More

if . . . elsif . . . else in Ruby on rails

  • 2008-10-17
  • Comments
  • Brian Marick
  • 59

Here is Ruby’s if statement in all its glory, wrapped in a method:
Read More

Methods in Ruby on rails

  • 2008-10-17
  • Comments
  • Brian Marick
  • 57

Ruby methods let you create new verbs (messages) in the Ruby lan- methods guage. It’s a bit confusing that two closely related ideas—messages and methods—have such similar names.
Read More

Command-line Arguments in Ruby on rails

  • 2008-10-17
  • Comments
  • Brian Marick
  • 60

Command-line arguments are available as strings in the array named ARGV. For example, consider this command line:
Read More

Naming conventions in Ruby on rails

  • 2008-10-17
  • Comments
  • Brian Marick
  • 59

A Ruby name may contain letters, numbers, and the underscore character (not a hyphen). Names can’t begin with a number, nor may they include spaces. Case matters: my_ship is not the same name as my_Ship.
Read More

Prompts, Command Lines, Prompts, and irb in Ruby on rails

  • 2008-10-17
  • Comments
  • Balram Thakar
  • 62

There are two kinds of prompts command-line prompts and irb prompts. If you type a command meant for the command-line interpreter to irb (or vice versa), you’ll get confusing results. If what you see on your screen is nothing like what the book tells you to expect, check that you’re typing at the right prompt.
Read More

Standard Library Packages in Ruby

  • 2009-03-03
  • Comments
  • Emiley J.
  • 56

This is a list of standard library packages in Ruby
Read More

CGI class in Ruby

  • 2009-03-03
  • Comments
  • Jeeva
  • 59

CGI is a large class, providing several categories of methods, many of which are mixed in from other modules. Some of the documentation is in this class, some in the modules CGI::QueryExtension and CGI::HtmlExtension. CGI::Cookie handles cookies.
Read More

Benchmark module in Ruby

  • 2009-03-03
  • Comments
  • Emiley J.
  • 56

The Benchmark module provides methods to measure and report the time used to execute Ruby code.
Read More

date and time in Ruby

  • 2009-03-03
  • Comments
  • Tadayoshi Funaba
  • 59

In common usage, the date is reckoned in years since or before the Common Era (CE/BCE, also known as AD/BC), then as a month and day-of-the-month within the current year. This is known as the Civil Date, and abbreviated as civil in the Date class.
Read More

Open and manipulate CSV files in Ruby

  • 2009-03-03
  • Comments
  • Vijay
  • 64

To Open a CSV formatted file for reading or writing use open(path, mode, fs = nil, rs = nil, &block)
Read More

Most Viewed Articles on Ruby

Latest Tutorials

Subscribe to Tutorials

Related Tutorials

Using Proxy to connect to URLs in Ruby

header() in Ruby

out() in Ruby

Open and manipulate CSV files in Ruby

date and time in Ruby

SimpleDelegator in Ruby

What is dRuby?

dRuby client/server mode sample program

Using remote objects under dRuby

Security in dRuby

FTP using Ruby

Reading URL content using Ruby (HTTP)

POST a form in Ruby

Traversing all files in a directory using Ruby

Active Record in Ruby on Rails

Archived Comments

1. It tried this app... It's working fine... really a
View Tutorial          By: Prakash at 2012-01-04 06:33:12

2. well...raghu download the sun api...whose link is
View Tutorial          By: rima at 2008-12-27 22:22:03

3. send c++ programs on every topic of c++
View Tutorial          By: mandeep at 2009-07-11 00:50:23

4. Its working Great.
Here i want to ask one

View Tutorial          By: Manish at 2015-03-18 11:55:20

5. hey it is really good notes, to give an idea of
View Tutorial          By: Pawan at 2011-03-26 05:17:28

6. it is gooo...very helpful to know the basics
View Tutorial          By: srikanth at 2010-08-24 00:38:57

7. its realy gud which clears minor douts regarding t
View Tutorial          By: Shripad at 2010-01-19 05:40:41

8. helpful :)
View Tutorial          By: ravinder at 2012-03-22 11:52:19

9. well understood
View Tutorial          By: shanthini at 2014-04-07 17:19:20

10. hi
thanks for your code i wanted to know w

View Tutorial          By: anshul at 2009-10-28 15:10:10