What is the difference between Ruby and Ruby on Rails?

后端 未结 6 1728
夕颜
夕颜 2020-11-30 01:32

I have been studying Ruby for the past few days and I have noticed there is Ruby on Rails.

What is the difference between the two? Do they work together? Is the syn

6条回答
  •  北海茫月
    2020-11-30 02:24

    Ruby is a scripting language and Rails is a framework which is built using Ruby.

    Ruby and Rails are tightly coupled and "Rails is magic emerged out of Ruby". Whatever you write in a Rails application is just Ruby code. When you run a Rails application, you are just interpreting the Ruby code using Ruby's interpreter.

提交回复
热议问题