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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:22:38+00:00 2026-05-18T09:22:38+00:00

I am in the process of building a super simple CMS to handle smaller

  • 0

I am in the process of building a super simple CMS to handle smaller “static” page type projects (e.g. – small sites for friends). I have different “page types” that I would like to add. I built something similar in Coldfusion previously. Looked something like this:

table content_type:

content_type_code varchar(10)
content_type_name

table content:

content_id
content_type_code varchar(10)
content_name
content_desc
content_url

I would create a content type called “blog” or “photo” and each time a content was added, it’d get assigned the content_type_code. Then in /blog/ I’d query for all content that had a content_type_code of “blog”.

Now that I’m using Ruby/RoR I am trying to think about things differently. I was thinking a better way might be to use nested pages with awesome_nested_set (https://github.com/collectiveidea/awesome_nested_set). But I’m not sure if that’s the best solution.

Then I could create a page called “blog” and add to that many pages. So essentially the top level would take place of the “content_type” from my previous example.

Can someone steer me in the right direction on what the best method would be? I’m a newb looking for a kick in the right direction.

EDIT

I should add that the only real thing that I would change between the different “types” of content would be the layout and where they are displayed (“photo” content at /photos/, “blog” content at /blog/).

  • 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-18T09:22:39+00:00Added an answer on May 18, 2026 at 9:22 am

    I try to recap:

    1. You want to build a CMS
    2. Your CMS manages a single web site
    3. A web site is made of content
    4. There are differenti type of contents, and I am assuming every type of content has its own behaviour
    5. Contents are organized in a tree

    Here is the plan I suggest you:

    1. Create the Content resource; use the scaffold to have something already working, adding few field (title and body in example)
    2. Add validations to your new model
    3. Write a couple of unit tests against your validation (quite useless, just to see how it works)
    4. Install awesome_nested_set and manage to make it working with your model
    5. Work on the UI to make it quite easy to create new content, move content around, edit a single content
    6. Now its time to implement the content types; STI is the Rails way, but I have to warn you it can be really hard. I suggest you to reiterate 1, 2, 3, 5 to create new models for Photo and BlogPost

    Once you will be there, you will have hundreds of ideas to implement. Have fun 🙂

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

Sidebar

Related Questions

During the process of building software applications, you would start testing what you have
I'm in the process of building a support page for my pre application. I'm
We are in the process of building a Multi-Tenant, SaaS type web app. Everything
In the process of building an RPM package, I have to specify the BuildRoot
I am in the process of building a large asp.net Mvc project and have
in the process of building an app, I have an Activity lets call it
I'm in the process of building a sports team app and have created my
I'm currently in the process of building out a VERY simple Observer class for
In the process of building a JavaScript interpreter for a simple language, I've faced
I'm in the process of building a small tool for my employer, and attempting

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.