Topic: What's the recommended way to override scaffold template?

Hello, I'm a newbie to RoR. I would like to override the template for generate/scaffold. Currently using NetBeans 7.0.1 with JRuby 1.5.1, Rails 2.3.8.

I know it's a bad idea to directly modify rails-2.3.8/rails/rails_generator/components/scaffold, but I don't know how to overload it.

How do I set up script/generate to call my customized generator?

2

Re: What's the recommended way to override scaffold template?

Check out nifty-generator by Ryan Bates. It includes custom scaffold generator. https://github.com/ryanb/nifty-generators