Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby vs. Ruby On Rails

What is the difference between Ruby on Rails and Ruby? I have asked four people but none can come up with a definitive answer. Is Rails a library of sorts for Ruby, a la Django to Python or Cocoa to Objective C, or is it a totally different language with different capabilities? What can one do on Rails that cannot be done just with ruby?

like image 725
Billjk Avatar asked Feb 14 '12 04:02

Billjk


People also ask

Is Ruby same as Ruby on Rails?

Ruby is an open source, object oriented general-purpose programming language, whereas Ruby on Rails is an open source web development framework. As a programming language, Ruby has its own 'syntax' or language, as well as unique rules for its use and application.

Should I learn Ruby or Ruby on Rails?

Rails might be your first framework, and Ruby your first language. If you're new to programming in general, you'll want to start with Learn to Program. It'll teach you to write your own programs in Ruby, even if you've never written code before. It'll start you off with good habits.

Is Rails same as Ruby on Rails?

Rails is not a programming language. Ruby on Rails is a web framework. Web application frameworks like Rails still use scripts written by developers, but they don't use their own language. Rails uses the Ruby programming language.

What replaced Ruby on Rails?

Django is to Python what Ruby on Rails is to Ruby. If you are looking for an alternative of Ruby, maybe something that works cross-platform, and enables full-stack web development, Python is a good option. If you decide on Python, Django is your go-to framework as it won't require frontend frameworks.


2 Answers

Rails is a framework for building web applications with Ruby. Ruby is a general purpose programming language. Yes, Rails is analogous to Django.

like image 155
RyanW Avatar answered Sep 28 '22 18:09

RyanW


Ruby is a programming lang like python and obj C. Rails is not a programming lang. It is a web framework for creating web apps and uses Ruby programming lang. :)

like image 23
HM1 Avatar answered Sep 28 '22 17:09

HM1