Bob Nadler, Jr. Logo

Rails 3 Generators: Lookup Paths

Image by

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:

Email list
Image by husin.sani

No spam, ever. Unsubscribe at any time.