Custom controller for scaffold generator

Hi, i put my customized controller in lib/templates/scaffold_controller/controller.rb for using in scaffold generation.

The problem is that the original controller template is used! Where do i put my custom controller template? Or maybe is this a bug?

I'm using Rails v. 3.0.7 (Ruby 1.9.2p180)

Thanks in advance,

ciao iwan

Solved! The correct position for the customized controller file is lib/templates/rails/scaffold_controller/controller.rb

The misleading suggestion is now corrected:

Solution found here: http://zigzag.github.com/2010/01/18/customizing-your-scaffold-template-become-easier-in-rails3.html