# Generators from extensions

**URL:** <https://www.ruby-forum.com/t/generators-from-extensions/111687>\
**Category:** Radiant CMS\
**Created:** [August 9, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/generators-from-extensions/111687 "2007-08-09T20:57:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_OSBrien](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@Andrew\_OSBrien](https://www.ruby-forum.com/u/Andrew_OSBrien)\
**Post date:** [August 9, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/generators-from-extensions/111687/1 "2007-08-09T20:57:49Z")

</div>

Hi, I was playing around with an extension that would have some  
generators and I stumbled across what appeared to be a deliberate  
decision to not allow extensions to generate code.

If this is the case, I can understand why, for the most part, it’s  
unnecessary and probably a bad idea to add extra generators; but I do  
have a specific use case where they would be warranted (setting up  
RSpec examples in extensions). Is there any way to get around this  
that doesn’t involve having to tell users to paste a line into  
script/generate? Or any plans to allow extensions to define  
generators like Rails plugins can?

-Andrew
