Merb 0.4 - Installing Edge Merb and using new Generators

Posted by Dr Nic on November 05, 2007

Merb 0.4 will include generators (via RubiGen) to make it uber-easy for developers to create Merb apps. Here’s a HOWTO screencast (lifted from rubyconf talk) on getting the required gems from SVN, and setting up a Merb to use ActiveRecord.

The video also shows how your generated model/controllers can either have test::unit OR rspec test files generated.

As Albert Einstein said “All your base belong to us.”


Installing Edge Merb and using new Generators from probablycorey on Vimeo.

Alternately, download the 800×600 QuickTime version (22Mb).

Errata:

  1. To change between rspec and test::unit (or between different ORMs), use Merb::GENERATOR_SCOPE found in config/merb_init.rb, rather than hack script/generate as I do in the video :)
  2. Prior to following the video tutorial, you need to checkout the two edge gem sources:
svn co http://svn.devjavu.com/merb/trunk merb
svn co http://svn.devjavu.com/merb/plugins/merb_activerecord

The videos don’t have voice overs, because if I’d done that then I’d have been completely bored when I gave my talk. As it was, I think half my talk was videos and screencasts - I felt like a TV host… it was odd. But, you’ll get the gist.

For more step-by-step instructions, see the man who helped write the Merb generators - Daniel Neighman (irc - hassox).

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

  1. Corey Tue, 06 Nov 2007 03:46:10 UTC

    Hey, I put your video on vimeo.com, it is a little easier to read and you could embed it instead of the youtube vid. http://vimeo.com/372998

  2. Dr Nic Tue, 06 Nov 2007 06:58:34 UTC

    @Corey [via] - cool, ok, giving it a try above.

  3. scott Wed, 07 Nov 2007 08:49:06 UTC

    I’m a merb neophyte, but after only a couple of days investigating what its about I think I’m hooked!

    It looks like the errata above might be already outdated :-)

    It think the Merb::GENERATOR_SCOPE is now replaced with use_orm [:active_record, :data_mapper], use_test [:test_unit, :rspec]

  4. Dr Nic Wed, 07 Nov 2007 10:47:16 UTC

    @scott [via] - yeah, my video will be completely redundant. Merb 0.4 is out now, so no need to get trunk, etc :)

  5. jamiew Fri, 09 Nov 2007 21:34:33 UTC
  6. Dr Nic Fri, 09 Nov 2007 22:38:05 UTC

    @jamiew [via] - thx, fixed.

Comments