News for hackers. Stuff that matters.
Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by stephenr on Wednesday August 31, 2016 @08:37AM (#12397806)
I notice you have "versioning" on your todo list.

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).

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...

https://rubygems.org/gems/git/

Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by SalGnt on Wednesday August 31, 2016 @02:37PM (#12400430)
Awesome!
Re:Show HN: Codervault – Open-Source, Self-Hosted Snippet Ma... by mordocai on Wednesday August 31, 2016 @01:45PM (#12400101)
It definitely can, though it won't be as easy as just storing text blobs in the database like is the default rails way.