Forum: Ruby on Rails Why are generators not menus or prompts?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6623b3045e95611491404026bd823a7a?d=identicon&s=25 Joe Le Brech (Guest)
on 2013-08-21 11:44
(Received via mailing list)
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.
52f3528c40e9cf28ad0900886eecb128?d=identicon&s=25 Jordon Bedwell (Guest)
on 2013-08-21 12:35
(Received via mailing list)
On Wed, Aug 21, 2013 at 4:42 AM, Joe Le Brech <jlebrech@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.
6623b3045e95611491404026bd823a7a?d=identicon&s=25 Joe Le Brech (Guest)
on 2013-08-22 13:16
(Received via mailing list)
I think cakephp does a slightly better job of generators than rails.
6883e5ef03484d4fcef507d7b4f1d243?d=identicon&s=25 Matt Jones (Guest)
on 2013-08-22 15:39
(Received via mailing list)
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
This topic is locked and can not be replied to.