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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:23:23+00:00 2026-05-26T23:23:23+00:00

I am working on a project where we offer a very simple homespun CMS

  • 0

I am working on a project where we offer a very simple homespun CMS type backend. It allows you to edit/delete various attributes on the Page model.

There are a reasonably large amount of editable fields similar to any other CMS. We want to split these up into 3 logical section to make it easier for our customers.

We want to have a page for editing the Page content then we want a page for uploading/changing the Page image and then we want a page to upload metadata for the Page.

Currently I have a PageController and all three sections are just updating the Page model however the question is how do I best use Rails controllers to do this in a way that obvious to other Rails developers?

Do I just have 3 methods on the Page controller, one for content, one for image and one for metadata?

OR

Do I create a new Controller called something like CMSController and have 3 methods on this and then just keep my PageController to do the usual RESTful heavylifting such as actually saving and creating new Pages?

Thanks for your help.

  • 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-26T23:23:24+00:00Added an answer on May 26, 2026 at 11:23 pm

    Do I create a new Controller called something like CMSController and
    have 3 methods on this and then just keep my PageController to do the
    usual RESTful heavylifting such as actually saving and creating new
    Pages?

    It’s a good idea to have a CmsController or PublicController for handling your root_path any actions you want taken care of there.

    Do read up on Member and Collection routes; you can have as many of these under PagesController to achieve exactly what you want. Just make sure those methods are private so that they are not publicly accessible — this would be a moot point though if your admin is namespaced and hardened accordingly. You can see an example of a namespaced admin in one of my projects.

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

Sidebar

Related Questions

I am working on a simple project involving Prospects and Offers . This project
I'm working on an existing Java EE project with various maven modules that are
I'm working in a android project the idea is simple: I just need to
I created a simple MySQLi class for a project I'm working on to make
While working a project tonight, I ended up using one .js resource file for
I working on project and have problem with threading and update of UI. I
I am working a project where I need to generate a series of classes
I'm currently working on project with Haskell, and have found myself some trouble. I'm
I am working a project that does not have a trunk / branches /
I am working on project in Linux which involves 1) Static Lib in C++

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.