Mat Schaffer
2/28/2007 3:42:00 AM
On Feb 27, 2007, at 9:41 PM, Pedro Del Gallego wrote:
> Hi,
> I am in a not rails project. I want to generate some struct-dumb-code
> in ruby that is going to be heavily changed. Right now, i did it using
> rails script/generate.
>
> My question is, is out there any good code-generator for ruby ?
>
> Is there a good way to use the rails generator to build out-rails-
> code?
>
> BTW we are thinking in create a house-code-generator. Any good
> article/video on this topic
First, how about creating an in-house gem rather than code
generation? If generated code has bugs, fixing it can be a pain.
But if you think it's the best solution I recommend erb, which is
what the rails generations are based on.
Hope that helps!
Mat