Ruby on Rails Installation Example Walkthrough
![]() |
I visited the website http://rubyonrails.org/download First you need to get the software. Download the windows Installer. |
![]() |
OK, I'm installing the ruby186-26.exe which is 23.72 MB I saved the file, here it is: /home/el/wiki/files/windows_software/ruby_on_rails/ruby186-26.exe |
![]() |
Installing. |
![]() |
Installing2. Scite and RubyGems are part of Ruby on Rails |
![]() |
The install directory will be c:/ruby |
![]() |
Completed Successfully. Check out the readme: /home/el/wiki/files/ruby_on_rails_release_notes_windows_vers_1.8.6.txt |
![]() |
It puts an item in my start menu. Choose Ruby Documentation -> Getting Started with Ruby |
![]() |
Ruby on Rails Getting Started with Ruby, lots of online tutorials and help. This is good time consuming stuff. Continue with browsing. Choose Ruby Documentation -> Ruby Core API. |
![]() |
Looks interesting, looks like a description of how Ruby's core language is used Choose Start -> Ruby Documentation -> Ruby Standard Library Documentation. |
![]() |
Ah, so this is documentation about how keywords are used. For example, clicking the 'Date' keyword: |
![]() |
This looks very useful. It talks about the nitty gritty details of how ruby handles Dates. I think I'll come back to this Now click Start -> Ruby Documentation -> Ruby User's Guide |
![]() |
This looks like a newbie Get-up-to-speed on Computer science in a hurry. Click on "Strings" |
![]() |
It's a walkthrough on using the Ruby command line. I gotta do these tutorials to get up to speed right now, like yesterday. |
![]() |
Choose Start->Ruby-186-26 -> fxri - Interactive Ruby Help & Console It appears to be a console to Ruby Documentation? Very interesting. |
![]() |
First test, as per the "Ruby User's Guide". It appears that Double quoted and single quoted strings are treated the same. it parrots back strings. lol ok. A double quoted string allowes character escapes by a leading backslash. Double quoted strings allow the embedded expressions: #{} A single quoted string does not do that interpreting. |
![]() |
As you can see, the double quoted strings interpret the newline \n. The ruby Console respects that. Single quotes not evaluate expressions. |
![]() |
The expression: "abcd #{5*3} efg" passed into the console evaluates the 5*3 as an algebra equation. that's nice. |
![]() |
Ok, now you can assign values to strings IN the ruby console, Not sure why you would do this in a console though. It needs to be in a program But nifty. |
![]() |
Instant Enlightment, I'll say, you can multiply strings by itsef. I'm sure that will be useful sometime I want to put "foo" on the screen a Variable number of times. They are totally right, this is much easier than C because you don't have to do memory management |
![]() |
Oohhh! Negative numbers in the indecies represent offsets from the Right. That's strange. Might cause a lot of runtime errors to slip through compile time Lots of rope to hang ourselves with. |
![]() |
Equality of the strings, Ruby seems to be pretty tight. I can see this fxri utility can help us debug and test programs before we code. Nice! |
![]() |
An example of Ruby code. Save this as guess.rb files ending in rb can be run by this console. I'll bet the default file for the programs would be: c:/ruby I assume wow, the mantra of Ruby being "Quick and Easy" is coming true |
![]() |
That was fun, lets check out SciTE. |
![]() |
aah, Yes, now I remember, I've used this many moons ago with Windows At SOI, I was partial to other editors though, this one looks nice |
![]() |
SciTE editor is important because it has the Ruby interpretive highlighting I used Scite before. But Linux Kwrite and Eclipse was mroe powerful for 4GL -> Java migration |
![]() |
Open up Ruby Gems Documentation, what is it? |
![]() |
Ruby Gems are packaged code that does things. Lets check Wikipedia. |
![]() |
Wikipedia says that RubyGems provides a standard format for distributing ruby programs and libraries. This will probably encourage web-2.0 collaboration. With a cost of danger, malware will be great with this one |
![]() |
Ruby Gems are managed by the gem server. You can run it on your own machine to serve up gems locally. |
![]() |
Open up the RubyGems Package Manager |
![]() |
A console. hmmm. |
![]() |
Here are the GEM commands. It appears we can manage what RubyGems are available and what libraries are available for us. Ruby looking better by the minute. I'll probably attempt installing some RubyGems later |
Firing up the servers and taking tutorials (which I have done).































