Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma...
by SalGnt on Wednesday August 31, 2016 @09:06AM
(#12397971)
I don't know if Rails allows to do this, but I'll try, thanks.
Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma...
by aaronbrethorst on Wednesday August 31, 2016 @02:21PM
(#12400346)
Well, seeing how GitHub does it...
I would personally implement that similar to how GitHub handles Gists: make each snippet a DVCS repo with 1 or more files in it.
That provides both the versioning functionality, and opens up the possibility for client-side editing using a well-known model (clone repo, make changes, commit, push).