Test-driven development is A Good Thing. There are many sites out there that will give you abstract discussions on why you should be doing it, so this page won?t dwell too much on that. This is intended to give a basic ?recipe? to follow, mostly for those new to the subject. You should read HowtoFunctionalTest and HowtoUnitTest , if you haven?t already.
SUSIE is a simple application and shows a side of Ruby that other programming languages lack, the ability to be straight forward and small. Ruby does have muscle and lots of it. It is a pure object oriented programming language like Java. But you can still use it as a quick procedural language, embedded in HTML as shown by the SUSIE Photo Gallery.
In a recent application I am building I needed to pull file names and directory names from a local directory. I searched all over the net for this and found nothing. After reviewing a few of rails built in functions I came across Dir.glob(). If you feed this method a path to a directory it will then come back with an array of the names and directories listed.
Go to RubyForge and download the latest version of the Ruby one-click Installer for Windows. Install it by running the setup program. I recommend installing it to c:
uby
2. Download and install RubyGems.
3. When Ruby and RubyGems have both been set up, run this in a terminal/command prompt window to install Ruby on Rails and all its dependencies:
One of the coolest things I ran across in RJS was the delay method. This delay method will do just that and delay a number of seconds. So lets say you need to highlight something that was just added to the page after the user submits it. I would like it to add to the page then wait 1 second and then highlight. The following is the code for that.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.