Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 789751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:34:21+00:00 2026-05-14T21:34:21+00:00

I am new to rails and have a question regarding the plugins. It seems

  • 0

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,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:34:22+00:00Added an answer on May 14, 2026 at 9:34 pm

    Try to install the gem version of something when you can. There are a couple of benefits you get over plugins:

    • You can have them enabled or disabled for specific environments
    • You can update them via gem update. With plugins, you’d have to manually go out and update them yourself.
    • They are shared system wide, so if you create a new project, you can use them without having to reinstall them if you used them in a previous project. You’d have to copy/paste plugins.
    • Plugins are specific to rails, but gems are not. It’s possible to use a gem outside of Rails.

    You can still unpack gems to your vendor directory by running rake gems:unpack. This is useful to “lock in” gems to their current version, and also makes for quicker deployment since you don’t have to fetch them from a 3rd party site (which is the case if you do rake gems:install).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hallo I'm new to Rails and have one simple question. I'm using radiant as
I am new to rails validation. I have two fields: field :feed_entitlements, :type =>
Hey, i have some experience with MVC. but I'm new to rails. I'm using
I have a small question regarding rails. I have a search controller which searches
I am a beginner with Ruby on Rails. I have a question regarding organizing
I am new to rails so sorry for the simple question. I have followed
I'm new to Rails development and I have a question about handling an unknown
Like many others, I'm new to Rails and have a question. I'm working on
This is probably a very simple question. I am new to Rails and have
I am new to rails and have a very simple question but couldnt find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.