Bob Nadler, Jr. Bob Nadler, Jr.

Rails 3 Generators: Lookup Paths

Published about 12 years ago less than 1 min read

Apparently the new Rails 3 generators do not support looking up custom generators in ~/.rails/generators anymore. Here is a bash function that copies a generator from ~/.rails/generators/GENERATOR into your rails app so that it can be used without having to turn it into a plugin / gem.

Note that Rails 3 does not support older 2.x style generators so you have have to re-write those using the new Thor syntax. Here are some helpful links:


Share This Article