Chat with Thomas | Profile

Welcome to the Modern Web Design.

Ruby and Rails

Ruby is the programming language. Rails is a framework written in Ruby. Rails runs on top of Ruby runtime.

Here are some example of ruby code:

puts "Hello world."                       # Hello world.
123.next                                  # 124
[1, 2, 3].count                           # 3
[1, 2, 3] * 2                             # [1, 2, 3, 1, 2, 3]
[1, 2, 3].reverse                         # [3, 2, 1]
variable_name = 30                        # 30
puts "There are #{variable_name} cars."   # There are 30 cars.  

For Rails, you can find the guide in the following URL:

http://guides.rubyonrails.org