Ruby Tutorials

Getting started with Ruby on rails

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

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

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

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

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

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

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

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

CGI class in Ruby

  • 2009-03-03
  • Comments
  • Jeeva
  • 199

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

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

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

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 a great article!
I have some questio

View Tutorial          By: ron at 2010-03-30 01:37:12

2. (i'm a senior PHP programmer, but a newbie in JSP,
View Tutorial          By: LOL at 2013-03-22 08:57:21

3. good article that help us
View Tutorial          By: D.md.Rafi at 2013-04-28 02:30:18

4. Best example to explain Inheritance. thankyou for
View Tutorial          By: Suresh Lilhare at 2010-05-14 09:10:27

5. Nice Article....
View Tutorial          By: Vipin Joshi at 2008-04-13 15:35:42

6. its good and well performance
View Tutorial          By: siva.c at 2014-09-02 08:18:19

7. can any one plz tell me which java comm api do we
View Tutorial          By: GAURAV MODI at 2010-01-29 02:12:13

8. Excellent!!!!! Thanks
View Tutorial          By: nimbostratue at 2009-12-09 13:07:09

9. when i am trying to compile your program one error
View Tutorial          By: anindya at 2011-11-23 03:00:49

10. Thank you I have understood the flow now.
<

View Tutorial          By: Shyam at 2012-05-17 13:14:40