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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:24:03+00:00 2026-05-30T07:24:03+00:00

I have built a custom administration panel into a Rails application that allows content

  • 0

I have built a custom administration panel into a Rails application that allows content editing of certain models through a gui interface. I initially designed the “admin” app to act as a parent applications—with its MVC, Gemfile, migrations, etc.—and created sub-applications (in a directory called frontends) that act as website interfaces to the admin’s models. The sub applications inherit the MVC from the parent admin application, allowing for website frontends to be designed and build upon the existing admin architecture without continually re-developing admin sites for each new project.

The structure on my local machine currently looks like this:

Administration Application <-- Individual git repo
    -> app
        -> admin
    -> config
    ...
    -> frontends
        -> Website_1 <-- Individual git repo
            -> app
            -> config
            ...
        -> Website_2 <-- Individual git repo
            -> app
            -> config
            ...

The current frontend is identified by a simple frontend.yml file in the config that loads the frontend application in the initializer before the admin application.

I feel like it’s imprudent, however, to have a nested structured like this. First the nesting of git repos is messy on my location machine, and more importantly, it’s extremely hard to switch the context of a project in a relatively short period of time. For example, if I wanted to switch from Website_1 to Website_2, I have to quit rails server and run a rake task that switches frontends. It also becomes a little more cumbersome when a frontend uses a different branch of the administration application. I find myself spending a lot of wasted time in git and rake switching between contexts in order to continue development on my projects.

I would like to change the structure of the application where each frontend is its own independent Rails application. It seems this would make it more simple to switch development contexts—allowing more than one application at a time to be running in rails server, testing, etc. I also want to be able to continue to house the administration application under git—since there are different flavors of the app throughout a series of branches and tags.

What would be the best way to approach this reconfiguration? I was thinking of creating a gem of the administration application and loading it from Bundler.

  • 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-30T07:24:05+00:00Added an answer on May 30, 2026 at 7:24 am

    I think a gem is your best bet here. Specifically, I’d look into using an engine; an engine is a gem that’s directly mountable inside your routes.rb using something like this:

    mount Administration::Engine => '/administration'
    

    Engines are essentially mini-applications that mount directly into other applications, which sounds like precisely what you need here.

    For more information on how to get started, check out the Rails engine documentation. And here’s a handy walkthrough you can follow that includes a link to enginex, a quick generator to bootstrap engine gems.

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

Sidebar

Related Questions

I have a custom application that was built to send opt-in newsletters and marketing
I have built a custom control that extends content control. Within this I have
I have built a custom membership provider that I have used in a previous
We have a custom-built Flash-based video player that I maintain, and it needs to
I have a custom built application framework written in PHP which I have been
I have a mac with a custom PHP 5 install that built from about
I have built a few custom applications that run on WSS 3 using the
I have built a semi-transparent custom layout panel in WPF by setting the Opacity
We have a custom built program that needs authenticated/encrypted communication between a client and
I have a custom built web service that is built to simply add items

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.