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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:00:17+00:00 2026-06-14T19:00:17+00:00

In my Rails app, I have a view that allows user to modify the

  • 0

In my Rails app, I have a view that allows user to modify the rendered HTML, such as move the buttons around, changing the colors of a DIV etc. How can I persist those changes such that when the view is rendered next time, those changes are reflected?

My first thought was to store the modified HTML into database as a text column. However I really don’t like this approach since the HTML can be arbitrarily large, not to mention performance will be very bad. I dug around and so far haven’t a clue, which is puzzling to me since I don’t think this is that rare of a scenario: WYSIWYG type editor, website builder application should all need to solve this problem. Which makes me wonder if I’m going down the wrong track.

Any insights are greatly appreciated!

  • 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-14T19:00:19+00:00Added an answer on June 14, 2026 at 7:00 pm

    I think I have found a solution, which is:

    1. create a model called ‘Site’
    2. break a page into multiple logical parts, such as logo/header, navigation menu, content etc.
    3. edit the page WYSIWYG-style
    4. save the HTML into DB via this model
    5. when the page needs to be rendered to reflect the changes, pull out the contents from DB and render them ‘raw’ in the template
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rails app I am working on that allows users to create
I have a rails app, that when a user is logged into his account,
We have an Ruby on Rail app that allows the user to save a
I have an XML view in a rails app, and need to insert in
Simple rails app: I have 2 models, user and intro [which is simply a
In my rails app I have user, school, and course models. I have set
I have a single Rails 2.2.2 app that I want to 'share' with multiple
I'm building a rails app that allows athletes to create and manage timesheets for
I have a rails application that displays content that is being rendered as a
I have a Rails app that is generating duplicate requests for every request in

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.