Women in Technology

Hear us Roar



Article:
  How to Build Simple Console Apps with Ruby and ActiveRecord
Subject:   Scaffolding support from newgem
Date:   2007-06-24 07:10:40
From:   GregoryBrown
Response to: Scaffolding support from newgem

Yeah, it's someone domain specific, but Ruport handles this kind of stuff[0], too.



$ rope my_project


Then you edit config/environment.rb which contains the establish_connection call.


Then:



$ util/build model my_model


You can include your models in any report via
require "data/models"


When you generate reports or renderers, the tests are scaffolded for you.


Again, it's geared towards Ruport, but it comes in handy for some things. :)


If you get newgem to do some of this stuff, let us know!


[0] http://ruportbook.com/rope.html