This project is archived and is in readonly mode.

#6140 ✓resolved
Paul Odeon

Rails 3 generators won't invoke custom generators

Reported by Paul Odeon | December 9th, 2010 @ 01:43 PM

I'm following the instructions from Rails Guides: http://guides.rubyonrails.org/generators.html on creating a custom generator

Have also tried on edge rails with the same results

~ ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
~ rails -v Rails 3.0.3
~ rails new testapp ... ~ cd testapp ~ rails generate generator my_helper ... ~ mate config/application.rb

require File.expand_path('../boot', FILE)
require 'rails/all'
Bundler.require(:default, Rails.env) if defined?(Bundler)
module Testapp
  class Application < Rails::Application

config.encoding = &quot;utf-8&quot;
config.filter_parameters += [:password]
config.generators do |g|
  g.helper          :my_helper
end



end end
~ rails generate scaffold Post body:text ... error my_helper [not found]

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Tags

Referenced by

Pages