# Generator with prompted user input?

**URL:** <https://www.ruby-forum.com/t/generator-with-prompted-user-input/153677>\
**Category:** Rails\
**Created:** [November 20, 2008, 1:29am UTC](https://www.ruby-forum.com/t/generator-with-prompted-user-input/153677 "2008-11-20T01:29:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrochkind](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/779978/32.png) [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Post date:** [November 20, 2008, 1:29am UTC](https://www.ruby-forum.com/t/generator-with-prompted-user-input/153677/1 "2008-11-20T01:29:13Z")

</div>

Is there any good way to have a generator prompt for user input (with a  
default) as part of it’s processing? Sort of like when there’s a  
conflict, and you haven’t set an argument other than ‘ask’, it asks you  
whether to overwrite the file.

Can I provide my own user input prompts for my own purposes?

Thanks for any help,  
Jonathan
