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
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment