Chephrenrepairs.com Reading Berkshire UK |
||||
COMPUTER REPAIRS 0118 9352873 email: repairs@chephrenrepairs.com |
||||
| COMPUTER FIXER BLOG >CALL OUT CACULATOR Ver1.1.4 >CONTACT US: >RSS Feed: Sunday, February 05th 2012 | ||||
| |
||||
email: repairs@chephrenrepairs.com | page end | news Cost from £20.00 per / hr
you need to have running on your computer to actually view Ruby on Rails pages. We will also look at editors that will help you when writing your Ruby or Rails code.
What is Ruby?
Ruby is a programming language, and it can do scripting, thats where a program runs within a web page to accomplish various things. PHP is another scripting language and also can run in a web page as well? Now the thing is that ruby is a purely object orientated language, this means everything ia an object!? This is going to be hard to explain as it takes a bit of noddle to get your head around objects, but it is some what diffrent from langages that are either not object orientated or can handle some object orientation, we will try to explain a bit latter....
Ruby will run on more less any computer operationg system, so its ok on a Mac and on Linux and Windows and other operationg systems, we are going to talk about Ruby on Windows in particular running on XP Service pack 3....
Ruby comes with Gems, oh gooosh you say whats that, well its like basically a whole load of programming functions that are already written for you, and thus it is probably preferable to download Ruby and its Gems all at once....? So where from you ask ???
Here we explaine about a one click installer for Windows: head over to ruby language web site
Once you have got to the Ruby Langage web site look for the Downloads, in the section entitled Ruby on Windows find the One Click Installer. now click on this, but remmember to tick SciTE and click Enable Ruby Gems. You should end up with a file in your Dowloads folder on your computer, you simply look for the icon, is will be something like : ruby186-27_rc2.exe this is the ruby installer, click on it and chosse run, what will happen is that once you have chossen the things to tick as above a window will open and a lot of text will scroll through that window, this is Ruby and Gems installing, your computer will be busy for a while get a stiff drink or an ice cream or a jam sandwich whilst this happens.
So how to check that ruby is installed: simples...... just go start Run, and type in cmd, now you have the classic black dos window...
Type in : ruby --version then hit return then wait.....
After a moment or two you will see something like : ruby 1.8.6 <2008-08-11 patchlevel 287> [i386-mswin32]
now you know ruby is installed and you see the version number.... As Yet you do not have Rails, why do you want Rails, what is it and how to install it, for the answers to these questions choose the Menu on this page Getting Rails.I guess really Rails is a Ruby Gem, it is grated a paarticular Ruby gem, but that what it is.... we found that in a lot of books it says you can just simply go to that good old Dos window and issue a command to instal Rails, but we found that that did not work... oh holy blinking heck why....
well even though you have installed Ruby and apparently some gems, you may not haveRails, in particular we are talking about rails 2 and even more particularly Rails 2.3.2.
Take a look at our page on getting Rails....