Ruby on Rails Workshop4

Ruby on Rails Workshop4 - Workshop 4 Riding the Rails with...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Workshop 4 Riding the Rails with Ruby Topic objectives To learn about the Ruby language and its classes and methods; To use Ruby via an interpreter console window with Windows, Linux or MacOS To select and test a Ruby IDE To explain how Rails framework is built upon inheritance of Ruby classes and methods. Topic readings Various websites as listed. Discussion 1. Introduction Your point of departure will depend on your experience. If new to programming then Ruby is a good language to learn, but easy to adopt if already familiar with other programming languages and development environments. The interest in Ruby since 2005 is due to the development of Rails as a Web application framework for developers, as it is written in Ruby and uses Ruby during development. Ruby has been around since 1996 and was developed in Japan by Yukihiro Matsumoto (Matz). Ruby is an object-oriented interpreted language suited to rapid prototyping. Ruby uses an end statement for loops and selection and has built-in methods for arrays and lists while the associative array key and value pairs are called hashes (Dictionaries in Python). When using regular expressions, both Ruby and Javascript are based on Perl, but when doing pattern matching, Ruby has its own ways using hashes. Various sources to learn about Ruby exist including http://ruby-lang.org - where you can download Ruby for your computer and the resources at http://ruby.activeventure.com/ among a host of sources that you can find. For the novice or professional who like a book and some source code, Huw Collingthorne has produced a free eBook called “ The Little Book of Ruby ”, 2 nd edition 2008 available from SapphireSteel Software at http://www.sapphiresteel.com/The-Little-Book-Of-Ruby This is supported by collection of useful short tutorials at http://www.sapphiresteel.com/- Tutorials- The extensive Ruby User’s Guide (2007) by Mark Slagell is another useful online resource on Ruby programming at http://www.rubyist.net/~slagell/ruby/ . 2. Interactive Ruby and Ruby development tools
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The Ruby interpreter can be invoked from the console window via the Command C:\ruby\bin\irb.bat or via the Terminal windows under MacOS via the irb command as below. Here are some simple Ruby statements to test: Last login: Tue Sep 2 21:57:24 on console beagle:~ ken$ irb Try these or similar Ruby statements on your console window >> x=6 >> "Hello".length >> "Ruby on Rails Workshop".length
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/15/2010 for the course ITC 594 taught by Professor Peterdalmaris during the Three '10 term at Charles Sturt University.

Page1 / 7

Ruby on Rails Workshop4 - Workshop 4 Riding the Rails with...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online