From: Ezra Zygmuntowicz Date: 2005-10-22T03:03:05+09:00 Subject: Re: Madeleine, SQLite and multi-platform issues (in ruby :-) On Oct 21, 2005, at 3:21 AM, Assaph Mehr wrote: > > Ezra Zygmuntowicz wrote: > >> What about using a pure ruby solution like KirbyBase? >> > > Nice idea. I like the plain-text backend (particularly fitting for my > domain), and can live without SQL and a gem release. > > My only question is about integrating with Rails. Any experience with > something like this? > I saw KirbyRecord, which is *like* ActiveRecord for KB, but I need > proper integration. Not necessarily all the trimmings of AR, but it > should work fairly painlessly. Any comments? > > Cheers, > Assaph Well kirbybase is really a nice little database. It now has one to one and one to many relations with tables and a bunch of other new features. I haven't got to play with KirbyRecord but that might be an option. But rails would work fine for the controllers and views and routes, giving you a great solid base to run your app on. And then you can always just make your models not inherit from ActiveRecord.base . Just make them kirkbyBase classes and add whatever methods you need to them. I know it wouldn't be as nice as active record with all the features that brings, but kirbybase uses blocks in a very nice and rubyish way to query the tables. It has also added indexes now so you can have very fast queries. I really like kirbyBase and its all pure ruby and text files so its *great* for portability, I think it would work seamlessly with rails. You won't get the full integration of AR but using ruby and blocks as the query method is very attractive to me. If you end up working on this I might pitch in a little and maybe we can make kirkybase a nice little alternative for rails projects that need portablity as a main feature. Let me know what you think Cheers- -Ezra Zygmuntowicz Yakima Herald-Republic WebMaster http://yakimaherald.com 509-577-7732 ezra@yakima-herald.com