Both methods put the gem into the project's folder to be a self-contained project. Is there advantage / disadvantage of these methods or one better than the other method?
(the project is a Rails 2.2 project, so can't use Bundler)
Both methods put the gem into the project's folder to be a self-contained project. Is there advantage / disadvantage of these methods or one better than the other method?
(the project is a Rails 2.2 project, so can't use Bundler)
Plug ins are falling out of fashion in the Rails world lately because they are harder to maintain, I guess or because they are considered a less elegant solution.
Besides, you can use Bundler in a 2.2 project (I have experience doing it with a 2.3 and 2.2 should be the same, right?). You only need to set up an initializer in your config/initializers folder: http://docs.heroku.com/bundler#using-bundler-from-rails-23x
The difference, and the reason plugins have fallen out of favor, is that a plugin is installed once, and can't easily be tracked or updated. Plus, you have to re-install that plugin from the web every time. If you have a fast-changing plugin, then the next time you use it in a project it might be drastically different than it is today.
Gems have two big advantages:
I hope this helps!