Is Gems from Ruby or On Rails?

0

I'm starting in Ruby and On Rails. I was a bit confused about "gem", is it part of Ruby or Rails?

Example command below.

gem install nome gema
    
asked by anonymous 12.05.2017 / 15:04

1 answer

1

Gem are packaged Ruby codes to be distributed and reused by other projects, apps, and so on ... Just as are JAR packages in Java or as Pecl PHP .

RubyGems is the manager of these packages where you can search for the gem you need to be able to download directly into your project with the bundle and gemfile.

So, gems are from Ruby (the programming language), while Rails is the Web Framework created with Ruby (and by the way, it's also a gem, or Ruby metagram).

    
12.05.2017 / 15:17