I’m building a rails site that will display different articles, where a publisher can go in and copy/paste a word doc (or edit it on a page). How would I have a textbox treat the formatting of the document that they would store? I know how to do normal text input and store in a database model, but how does rails treat formatting (bold, font size, colors, indentations of an individually stored article) and store that in the database? Thanks 🙂
I’m building a rails site that will display different articles, where a publisher can
Share
There are different ways you can store the text. One way would be for the editor to generate HTML files (or html.erb ones) which would then be shown to visitors of the website. The page would then be styled based on relevant CSS.
You can also use ready-made blogging solutions, such as Jekyll or Typo.