2 Ruby Tutorials and 3 Ruby on Rails Tutorials
Here are 2 Ruby Tutorials and 3 Ruby on Rails Tutorials
located at the LUG
Villafranca Programming Course website. These Ruby and Ruby
On Railes tutorials give you an excellent grounding and understanding
on using Ruby and Ruby On Rails to build web applications. Ruby On
Rails is an open source Ruby framework for developing
database-backed web applications. You will need to download and
install the Ruby
Interpreter, and you will also need to install Ruby on Rails.
In addition, these tutorials use RMagick version 2.0.2, which
is explained in this FAQ,
and SQLite 3.1.2.1, which is explained in this How-to. Windows
users will need both the .exe and .dll versions of SQLite. The Ruby on
Rails Wiki
page also gives helpful information for SQLite. Source code
is provided for all of these tutorials. Also, the whole programming
course, which includes JavaScript tutorials, can be downloaded as pdf
which is 2.28 Mb and explained in 125 pages.
Ruby Full
Immersion
This lesson will give a very brief overview of the language, noting
important differences from JavaScript where necessary. The first, and
probably most important difference from JavaScript, is that Ruby runs
on the operating system itself, rather than within a browser.
Ruby and
Ajax
Now we can start using Ruby to create our first web application. We
previously used the
Prototype and script.aculo.us libraries to dynamically modify an XHTML
page, now we'll use Ajax via the script.aculo.us Ajax.Autocompleter
to 'talk' to a simple Ruby web application. This lesson will introduce
you to WEBrick,
the Ruby web server, HTML
forms, the ERB
templating system, and Ajax.
Review of Ruby, Overview of Ruby on Rails
The last two lessons presented a whirlwind
guide to Ruby, demonstrating a simple command line program, and a
simple web application. That was a lot of material to digest, so in
this lesson we'll make a short review of the important things we
learned, and explain iterators and code blocks in a little more detail,
since they caused some problems for some of the students. As
we still have much ground to cover, half of this week's lesson is also
dedicated to an overview of the Ruby on Rails framework, which we'll be
using in the next two lessons to construct a more complicated web
application.
Ruby on
Rails, Part 1
This lesson starts us on a two part adventure building a web
application using Ruby and the Ruby on Rails framework. We will build a
web application for multiple users which allows them to upload images
into albums. The complete source files for this lesson can be found at LUGPC9.zip
- The WebAlbum Application
- Reality Check
- Using Rails Generators
- Our First User
- Pause for Thought
- The Master Layout Template
- Controllers and Helpers
- First Release
Ruby on
Rails, Part 2
This lesson concludes the two part adventure building a web application
using Ruby and the Ruby on Rails framework. The next step will be to
create another two classes that make up our data model, namely albums
and pictures. The complete source files for this lesson can be found at
LUGPC10.zip
- Creating the Albums and Pictures
- The Album Controller
- The Album Views
- The Album Model
- The First (and Second) Album
- Let's Add Some Pictures
- The Picture Controller
- Picture Controller and RMagick
- The Picture Views
- Finally, Some Configuration
- Adding Some Spice with Lightbox
- The Results
Popularity: 7% [?]
Related Posts:
Tags for this post>> Ruby | Ruby On Rails





























