Rails blog - is it a reasonable solution to store posts in partials? -


i'm looking code blog using rails , i'm trying figure out best approach storing posts themselves. plan use lot of styling, formatting , images , of course comes few challenges.

i've considered using wysiwyg html editor , storing posts html don't using them , find them quite restrictive. plus, editing content poses problems , i'd work within text editor.

i've considered using markdown, make storage element simpler, don't particularly want have write in markdown either.

i've absolutely no interest in storing xml , parsing display.

so solution came store content of each post in partial , have database column called content_partial references it. way can write them in way i'm comfortable , don't have persist huge amounts of text/html/css etc. of course means potentially having lot of partial files doesn't bother me.

is reasonable solution? or there pitfalls haven't thought of? alternative suggestions welcome.

thanks!

and i'd work within text editor

nothing easier. have posts table have column content store html. prepare html in local text editor. copy-paste regular textarea in post creation form. no wysiwyg, nothing. raw html. render content database.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -