Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How are Ruby and Rails related?

First of all, i want some clarification :)

1) Is RoR like a server scripting language?

2) Can it be used as an alternative to php?

I started learning Ruby from The Ruby Programming Language book and haven't yet come across something which relates to the web. Is Ruby for desktop apps and Rails for web apps?

Thanks

like image 903
jest Avatar asked Feb 01 '10 10:02

jest


2 Answers

ruby - dynamic programming language
ruby on rails - framework for creating web apps written in ruby

like image 144
Arnis Lapsa Avatar answered Oct 04 '22 02:10

Arnis Lapsa


Ruby is an all-purpose scripting language. There are GUI toolkits for Ruby, sure.

Rails is a web framework implemented in Ruby, which can be used to develop web apps - as an alternative to PHP.

like image 44
Leonid Shevtsov Avatar answered Oct 04 '22 02:10

Leonid Shevtsov