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:
http://stackoverflow.com/questions/4630911/override-default-scaffold-generator-in-rails-3

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs