Ruby Tutorials

Getting started with Ruby on rails

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

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
  • 8977

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
  • 8977

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
  • 8977

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
  • 8980

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
  • 8977

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.
  • 8977

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

CGI class in Ruby

  • 2009-03-03
  • Comments
  • Jeeva
  • 8977

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.
  • 8977

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
  • 8977

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
  • 8978

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

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. required the flag set loop stutruce .............
View Tutorial          By: savita at 2013-05-12 04:52:30

2. Great guide. Missed the lecture, and this summed e
View Tutorial          By: Anonymous at 2008-12-21 19:36:19

3. tnx, nice code...
View Tutorial          By: Hansoc at 2009-08-18 00:17:58

4. A good tutorial! Hope this would help the JSP deve
View Tutorial          By: geetha at 2008-09-12 04:17:14

5. Hi Shreya, in Linux, the COM ports are identified
View Tutorial          By: Ramlak at 2008-06-23 03:34:11

6. i have completed B.Tech,i want to SCJP exam ,tell
View Tutorial          By: bmnaidu at 2013-04-12 16:56:48

7. hi,

i am trying to run this SMS jav

View Tutorial          By: Raghavendra at 2010-12-29 08:27:02

8. Can u plz send me woking application (Send sms) J
View Tutorial          By: Ritanshu Goel at 2012-09-22 05:53:24

9. Thanks :)
View Tutorial          By: Anuj Bhatnagar at 2015-05-06 14:02:19

10. its giving exception
javax.comm.NoSuchPortE

View Tutorial          By: Dc at 2012-06-07 04:08:19