Posts

Showing posts from 2008

Merb blog tutorial

I started using merb a few days ago. After searching through the net, I couldn't find any working blog example for merb 1.0.6.1 (that also uses datamapper ) that I'm using. Yes, I know that the new documentation is underway, but I'd rather get this out quickly. (And, yes, I know that merb 2 = rails 3.) This tutorial just tries to be an shorter updated version of this great tutorial "merb + datamapper + noob: quick start" (from a slightly different viewpoint). It also assumes that you have some knowledge of rails. First you have to install merb. The easiest way is to just $ sudo gem install merb Because we'll use datamapper and sqlite3: $ sudo gem install datamapper merb_datamapper do_sqlite3 Start by generating merb application: $ merb-gen app blog Using this merb-gen app command generates an empty merb application that uses datamapper. In blog/ , you'll find a familiar directory structure. As in rails, configuration files are in config/ . Th