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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:51:37+00:00 2026-06-06T11:51:37+00:00

Im new to both ruby and rails, but have experience with java, javascript and

  • 0

Im new to both ruby and rails, but have experience with java, javascript and a little python.

I am thinking of creating a web application where it should be possible to create different things (models) with various properties and connections (relationships) between them.
Ruby on Rails seems to have support for some schemaless backends (mongodb, neo4j etc) so it has caught my interest.
Is it possible to build a web interface for creating new RoR models, adding properties and relationships to them? I want the user actions in the web interface to translate to new models with the specified properties on the RoR server. And these models should of course be persisted in some way (could they be persisted as ruby files perhaps?).
I guess you could see it as a CMS in some ways.

What are the tools or concepts I should be googling for?

regards Oskar

  • 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-06-06T11:51:39+00:00Added an answer on June 6, 2026 at 11:51 am

    It’s certainly possible to do what you ask and there are several different approaches but I would suggest that you look deeper at your requirements.

    In languages other than Ruby I’ve helped others architect & build similar meta-modeling CMS frameworks. The first one was done in 1999: full Web GUI for creating models and relationships between them straight from the browser. The reason why we had to do this back then was that the underlying platforms we were using made it rather difficult to create models and do MVC so we had to help developers with both framework code & GUI tools.

    Ruby as a language is well-suited for internal domain specific languages. Rails uses internal DSLs a lot, especially in ActiveModel. Because of this, it is often far easier to write the basic code for a Rails model then it is to use some other (higher) level of abstraction. GUI tools, in particular, are very tough to deal with when it comes to building good models because of roundtripping: the need to be able to allow for code to be changed by hand and that change to be reflected in the GUI. It’s a tough problem.

    With all that said, if you still want to go with a GUI-based meta-modeling approach, there are two main paths you can choose from:

    1. Building parameterized RoR meta-models
    2. Generating specific RoR models

    From the phrasing of your question it seems you are interested in (2). In that case, there are two standard approaches for going about this: you either interpret or compile. If you interpret then you create a DSL for describing models and its execution instantiates the models in the Rails environment. (In Ruby classes are defined by executing code that defines them so this is all perfectly normal.) If you compile than you’ll code-generate standard RoR models that use your favorite persistence framework. The question then becomes where will you keep the code. You can write it to disk and load it. You can also store it in a database, for example. In both cases you may want to look at gems such as sourcify.

    On a side note, if you choose to build this type of system, I’d highly recommend you go with a NoSql document-oriented persistence mechanism, e.g., MongoDB using something like Mongoid. The reason is that Rails provides limited support for SQL schema management and even less workflow automation (beyond basic migrations). Give people a GUI and they are likely to mess with schema more frequently. Therefore, you’ll have to deal with the schema migration problem. Document databases make this a little simpler (partly by punting on the problem at leaving it to code to deal with issues in a lazy manner). Relational databases usually don’t let you do that. They require up-front schema migration effort and that will add lots of requirements to your system and friction to the overall developer workflow.

    Good luck!

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

Sidebar

Related Questions

First I'm quite new to ruby and rails... I have a little application working
I'm new on both this site and ruby on rails! I have a common
New to both Ruby and Rails but I'm book educated by now (which apparently
I am quite new to both programming and ruby on rails. I have followed
I have a Ruby on Rails application that has two active environments, Stage and
I'm a newbie o thin. I have a ruby on rails application. Today I
The application is written in Ruby on Rails but the problem I am facing
I have a similar question as Ruby on Rails. Unicode routes but the answer
I am new to both Wordpress and Ruby on rails.Are these (WP and ruby
I'm really new to both ruby on rails and programming. I am trying to

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.