# Regular Rails Script Generate

**URL:** <https://www.ruby-forum.com/t/regular-rails-script-generate/119823>\
**Category:** Radiant CMS\
**Created:** [November 10, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/regular-rails-script-generate/119823 "2007-11-10T23:57:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Dean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/53a042/32.png) [@Jeff\_Dean](https://www.ruby-forum.com/u/Jeff_Dean)\
**Post date:** [November 10, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/regular-rails-script-generate/119823/1 "2007-11-10T23:57:12Z")

</div>

I’ve got the latest revision of Radiant from trunk (r596) and I also  
downloaded and configured the RadiantOnRails extension (very slick, by  
the way). I’d like to be able to use script/generate for the main  
rails app, but it’s not recognizing the standard generators.

Does anyone know how to use script/generate migration etc… in an app  
that’s based on Radiant?

---

<div class="post-metadata">

**Author:** ![Jeff\_Dean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/53a042/32.png) [@Jeff\_Dean](https://www.ruby-forum.com/u/Jeff_Dean)\
**Post date:** [November 11, 2007, 8:09am UTC](https://www.ruby-forum.com/t/regular-rails-script-generate/119823/2 "2007-11-11T08:09:14Z")

</div>

Let me preface this by saying that I haven’t used the RadiantOnRails  
extension. However, I have struggled with trying to get generators  
working in extensions. Your main problem is going to be that the  
Radiant script/generate resets the generator source list, overriding  
the normal rails behavior. I don’t have the bit of code on me right  
now, but if you want to re-enable generators in extensions (or  
anywhere other than #{RADIANT\_ROOT}/lib/generators) you’ll probably  
have to manually edit script/generate. My recommendation is to copy  
what’s there already and substitute in the glob you need.

Hope this helps,  
Andrew
