Cschmittiey (talk | contribs) No edit summary |
Cschmittiey (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
=== Getting Started === | === Getting Started === | ||
First off, we'll install Ruby. Open a terminal (by going to Applications -> System -> Terminal) and type the following: | First off, we'll install Ruby. Open a terminal (by going to ''Applications -> System -> Terminal'') and type the following: | ||
<pre> | <pre> | ||
sudo yum install ruby | sudo yum install ruby | ||
Line 17: | Line 17: | ||
</pre> | </pre> | ||
Type <code>y</code>, then press enter. After Ruby is installed, type <code>irb</code> in the terminal. | Type <code>y</code>, then press enter. After Ruby is installed, type <code>irb</code> in the terminal. | ||
{{admon/note| IRB |When you typed <code>irb</code> into Terminal, you started a program that is called Interactive Ruby. This interprets ruby code interactively, and is great for debugging or trying new code out.}} |
Revision as of 22:57, 15 December 2012
This Cookbook will get you started with installing Ruby, and creating simple "Hello, World" projects with some popular frameworks such as Ruby on Rails, Shoes, Sinatra, and others.
This cookbook is based off of a factory-fresh Fedora 18 (Beta) release.
Getting Started
First off, we'll install Ruby. Open a terminal (by going to Applications -> System -> Terminal) and type the following:
sudo yum install ruby
Type in your password. When you should see something like this:
Total download size: 3.8 M Installed size: 12 M Is this ok [y/N]:
Type y
, then press enter. After Ruby is installed, type irb
in the terminal.