RubyLinks

From OpenCA Labs WiKi

Table of contents

General tutorials

A short wacky tutorial with lots of useless random text but very good code examples: http://poignantguide.net/ruby/ . Straight to Contents (http://poignantguide.net/ruby/whatisit.html)

Ruby Programming Guide (http://www.whytheluckystiff.net/ruby/pickaxe/) -- good index

Ruby cookbook: http://pleac.sourceforge.net/pleac_ruby/ -- lots of code examples

http://pine.fm/LearnToProgram/ -- a tad slow, nice formatting.

Quick Reference

http://www.zenspider.com/Languages/Ruby/QuickRef.html

Non-free books

From Dartmouth or any place with Safari subscription: O'Reilly's "Ruby Cookbook" (http://proquest.safaribooksonline.com/0596523696) Rails Cookbook (http://proquest.safaribooksonline.com/0596527314)

Ruby Gems (package system)

http://docs.rubygems.org/ -- documentation for "gem", the package manager

http://gems.rubyforge.org/ -- actual repository

http://rubyforge.org/ -- SourceForge-like development site. Download RubyGems (http://rubyforge.org/projects/rubygems/) from it and search for matching packages

Synopsis: "gem install package_name" to install a package

Caution: CPAN is more mature by comparison! Expect to encounter alpha and beta packages.

XML tutorials

REXML is a pure Ruby non-validating parser (non-DOM, purports to have more natural API)

REXML can be slow for large files, use xml/libxml (http://libxml.rubyforge.org/doc/files/README.html) (Ruby bindings to libxml2) or xml/parser (http://www.yoshidam.net/Ruby.html#xmlparser) (Bindings to the C Expat parser (http://expat.sourceforge.net)) instead.

http://www.xml.com/pub/a/2005/11/09/rexml-processing-xml-in-ruby.html -- step-by-step, pleasant

http://www.germane-software.com/software/XML/rexml/docs/tutorial.html -- more technical, from REXML authors

MySQL tutorials

http://www.kitebird.com/articles/ruby-mysql.html -- Nice and comprehensive

http://www.tmtm.org/en/mysql/ruby/ -- a short version with a few examples