gitmodel icon indicating copy to clipboard operation
gitmodel copied to clipboard

is gitmodel alive? + rails integration

Open mcasimir opened this issue 11 years ago • 3 comments

Is gitmodel alive? just in case, i've released gitmodel-rails gem just now to integrate it with rails.

Please tell me if you are intrested to develop and mantain it further, i hope you would to do so, since i wish to use gitmodel for a project i'm starting right now.

Thank you

mcasimir avatar Jul 25 '12 23:07 mcasimir

Cool! What does gitmodel-rails do?

To be honest I don't have much time to work on this right now, unfortunately. I'd love it if someone wanted to continue development. I'm using it for my blogging engine Balisong but I'm so busy with work that I haven't had time to work on any open-source things lately.

pauldowman avatar Jul 26 '12 15:07 pauldowman

I'm sorry i forgot to link the README: https://github.com/mcasimir/gitmodel-rails.

gitmodel-rails is a rails gem that integrates Gitmodel with Ruby on Rails ~> 3.2

Basically it is a railtie that initializes gitmodel at startup loading configuration from a yaml file.

It also provides a generator for gitmodel models.

Speaking of time.. probably i could be interested in support gitmodel at least to implement all the necessary features to replace an old CMS with a git-backed one. I explain my problem: i own an italian nationwide website that is based on Ruby on Rails. It employs a full dynamic template system with templates stored in database.

This approach was great at beginning but in the present circumstances it is a little inefficient and is also not cost effective to extend and to manage it since all changes should be done in production.

It could be an option for us to move the page/page_parts system from mongo to a git-backed database in a way that we could edit templates from a text editor instead that in a text-area, test each feature in development and then sync everything to production. The resulting savings could be worth the effort to improve Gitmodel.

With a little guidance these are some features I could try to include in Gitmodel:

  • Rails Cache support (don't rely directly on memcached but use the Rails Cache interface)
  • Associated or Embedded models (a Page should have many Page Parts)
  • A generator that initializes the repository (git init/git remote) according to gitmodel.yml
  • Configurable subtree (Ideally i wish to use the working tree from Rails.root but committing entries in app/pages/page-id/... )

What do you think? Is something like that feasible?

mcasimir avatar Jul 26 '12 21:07 mcasimir

Awesome! It looks good. If you're interested in taking over or forking Gitmodel I'd be happy to help as much as I can. (I'm away on holiday this week with only occasional Internet access so I'll be slow to respond for the next few days).

pauldowman avatar Jul 30 '12 16:07 pauldowman