Hacker News new | ask | show | jobs
by SalGnt 3582 days ago
I created this snippet manager because I never found a similar one around the internet. This is my first experience with Rails, what I want with this project is to learn more about this framework. Feel free to give me your feedback, thanks!
1 comments

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

I don't know if Rails allows to do this, but I'll try, thanks.
Well, seeing how GitHub does it...

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

Awesome!
It definitely can, though it won't be as easy as just storing text blobs in the database like is the default rails way.