Ruby Tutorials

Getting started with Ruby on rails

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

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

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

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

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

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

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

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

CGI class in Ruby

  • 2009-03-03
  • Comments
  • Jeeva
  • 560

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

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

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

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. i want to know how to connect to a remote mysql da
View Tutorial          By: lixiang at 2013-04-23 04:32:58

2. the default implementation of validate returns nul
View Tutorial          By: Jerry at 2009-02-01 11:12:06

3. the correct 255's binary representation is:

View Tutorial          By: SD.Plox at 2008-12-30 17:51:39

4. It can be Made Popular by adding Links or Suggesti
View Tutorial          By: Ramalingam at 2010-03-20 23:00:41

5. Hello
I need some one send me runnable cod

View Tutorial          By: Ahmed Ghazey at 2010-08-09 01:55:48

6. plz,sent me a sample j2me programm for chnging col
View Tutorial          By: su at 2007-12-19 21:54:30

7. pls help how to fetch vowels as a first letter of
View Tutorial          By: anjali at 2014-09-18 20:45:49

8. plse can u send me study material or sample questi
View Tutorial          By: sneha at 2015-03-12 09:40:49

9. very good description ,clear and simple
View Tutorial          By: swapnil at 2011-06-24 06:33:10

10. I'm getting the following error even after several
View Tutorial          By: Joe85 at 2011-03-18 08:58:04