Ruby Tutorials

Getting started with Ruby on rails

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

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

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

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

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

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

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

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

CGI class in Ruby

  • 2009-03-03
  • Comments
  • Jeeva
  • 153209

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

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

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

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

Standard Library Packages in Ruby

Module Abbrev in Ruby

encoding and decoding in Ruby using Base64 Module

Benchmark module in Ruby

benchmark(caption = "", label_width = nil, fmtstr = nil, *labels) {|report| ...} in Ruby

bm(label_width = 0, *labels) {|report| ...} in Ruby

bmbm(width = 0) {|job| ...} in Ruby

CGI class in Ruby

URL encode a string in Ruby

escapeElement() in Ruby

escapeHTML() in Ruby

new(type = "query") in Ruby

parse(query) in Ruby

pretty() in Ruby

Format a Time object as a String in Ruby

Archived Comments

1. really nice tutorial
View Tutorial          By: Gaurav Balyan at 2012-01-03 11:07:05

2. this site is so good...... How can we create a mp4
View Tutorial          By: vikram raj at 2011-01-05 01:03:07

3. THANX FOR THE INFO....
View Tutorial          By: Abhinaykumar at 2010-07-06 11:34:53

4. this total example is copy paste from the Herbert
View Tutorial          By: Parna at 2012-06-03 05:16:37

5. when i copy paste your program or source code

View Tutorial          By: Zordan at 2011-03-17 04:28:08

6. Great!! Many thanks!
View Tutorial          By: Louis at 2013-06-01 23:16:41

7. in this matter i get also this exception :

View Tutorial          By: oded at 2008-09-28 05:41:35

8. Excellent.
Just one question... What is the

View Tutorial          By: HeilGates at 2010-08-04 13:38:12

9. Thank you very much. This is the easiest and also
View Tutorial          By: Mehmet Üsküp at 2013-06-17 21:08:08

10. Really helpful way of explanation..And the example
View Tutorial          By: pavan at 2010-04-17 03:10:58