Why are generators not menus or prompts?

31 views
Skip to first unread message

Joe Le Brech

unread,
Aug 21, 2013, 5:42:37 AM8/21/13
to rubyonra...@googlegroups.com
wouldn't it be more efficient to have a generator ask for column names and types and indexes in a prompt?

or easier at least.

It would be nice to also have ncurses menus for that.

Jordon Bedwell

unread,
Aug 21, 2013, 6:34:14 AM8/21/13
to rubyonra...@googlegroups.com
On Wed, Aug 21, 2013 at 4:42 AM, Joe Le Brech <jleb...@gmail.com> wrote:
> wouldn't it be more efficient to have a generator ask for column names and
> types and indexes in a prompt?

Sure, but this isn't Rails bug tracker, please visit
https://github.com/rails/rails and recommend it there.

> It would be nice to also have ncurses menus for that.

No.

Joe Le Brech

unread,
Aug 22, 2013, 7:15:40 AM8/22/13
to rubyonra...@googlegroups.com
I think cakephp does a slightly better job of generators than rails.

Matt Jones

unread,
Aug 22, 2013, 9:38:22 AM8/22/13
to rubyonra...@googlegroups.com


On Wednesday, 21 August 2013 05:42:37 UTC-4, Joe Le Brech wrote:
wouldn't it be more efficient to have a generator ask for column names and types and indexes in a prompt?

or easier at least.


Generators will *always* need to accept arguments - it's how (for instance) the resource generator can invoke the model + controller generators.

At that point, adding an ncurses interface is just duplicating functionality. 

--Matt Jones
 
Reply all
Reply to author
Forward
0 new messages