Pankaj Bagwan
Pankaj Bagwan
1 min read

Categories

Tags

Now a days many developers are developing web application using ruby on rails. But a few of them know what actually the difference between “Gem” and “Plugin”.

Here are some of them

RubyGems

1.) Gem is a packaged ruby application using the packaging system defined by RubyGems.
2.) Rails itself is a Gem
3.) We can install,upgrade and query the gem version.
4.) Gem installed for Ruby interpreter can be used system-wide by that interpreter.

Plugin

1.) Plugin is an extension of Rails Framework.
2.) Can not be upgraded by using a command. To upgrade one have to uninstall and then install upgraded version.
3.) Has to be hooked into rails application. (has to have init.rb)
4.) Have an install.rb file.
5.) Can only be used application wide.

Happy Coding :)


About The Author

I am Pankaj Baagwan, a System Design Architect. A Computer Scientist by heart, process enthusiast, and open source author/contributor/writer. Advocates Karma. Love working with cutting edge, fascinating, open source technologies.

  • To consult Pankaj Bagwan on System Design, Cyber Security and Application Development, SEO and SMO, please reach out at me[at]bagwanpankaj[dot]com

  • For promotion/advertisement of your services and products on this blog, please reach out at me[at]bagwanpankaj[dot]com

Stay tuned <3. Signing off for RAAM