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 966279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:07:58+00:00 2026-05-16T02:07:58+00:00

I have features I would like to be portable between my own Rails applications.

  • 0

I have features I would like to be portable between my own Rails applications.

I wonder if I should create a gem or a plugin for each feature I want to be portable (sharable).

They are just for Rails (for now) because they include css, html, js and image files.

But I have been wondering, the things provided with plugins could be provided with gems too but not the opposite? So maybe it’s better to learn how to create gems, because then you I don’t have to learn how to create both gems and plugins? And gems seem to be more popular these days.

But then, from what I can understand one gem is shared between all rails app in the OS. So that means I can not customize it for each Rails app right? In that case, maybe creating a plugin is better cause it should be allowed to customize (editing css, js etc) each feature and to have it stored inside the Rails app itself and not in the OS level.

Some advices would be appreciated!

UPDATE:

So gem works great with css, html, js and image files? In a plugin I think you can have a MVC, your own models, views and controllers. Quoted from Rails guides “Storing models, views, controllers, helpers and even other plugins in your plugins”. Is this possible too in a gem? Eg. I want to add a extension that gives me a nice Shopping cart (with own migrations, mvc, asset files) that will be hooked into the current Rails app. Is this possible as gem or only as plugin?

  • 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-16T02:07:59+00:00Added an answer on May 16, 2026 at 2:07 am

    You’re right that gems offer a little more than plugins. Versioning and dependencies on other gems being the main ones for me.

    One gem needn’t be shared across everything using ruby. You can install multiple versions of a single gem and specify in your environment.rb that a gem requires a specific version. E.g.

    config.gem 'my-gem', :version => '1.2.3'
    

    Also you can freeze gems into your rails application so that you know you are working with a specific version.

    You might want to look at the jeweler gem which makes creating your own gems easier.

    UPDATE

    To include CSS, javascript etc I think you’ll need to make an Rails engine which can then be bundled as a plugin or a gem. I’ve not done this but there’s some coverage here and here.

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

Sidebar

Related Questions

I have an IFrame app, and I would like to use some Connect features
My Rails app is hosted on Heroku. I would like to have another server
I would like it to have the following features: Supports multiple languages Allows admin
I have a simple Rails scaffolded application, and would like to add a bunch
Would like to know which library (open source preferable) should I use to create
I would like the feature for the sign in box to have the username
I would like to mimic the auto-incrementing primary keys feature that many databases have
I would like to introduce multithreading feature in my shell script. I have a
I have a animation of moving blocks but I would like to add feature
I'm looking content management system that would have features similar to stackoverflow: Users can

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.