Rails Plugin - Install as Plugin or Install As Gem

Posted by Joseph Misiti on Stack Overflow See other posts from Stack Overflow or by Joseph Misiti
Published on 2010-05-19T13:59:10Z Indexed on 2010/05/19 15:40 UTC
Read the original article Hit count: 471

Hey guys,

I am new to rails and have a question regarding the plugins. It seems there are two approaches you can take when using a third party plugin in a ROR App:

1) install a gem using sudo gem install GEM, and then "require" it in your rails project

2) install the plugin using script/generate plugin install PLUGIN. The plugin in code appears in your vendor directory and then you are good to go (sometimes, i could not get Devise working via this method).

Since it appears both of these methods accomplish them same thing, why should I choose one method over the other.

Thanks,

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about rubygems