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

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
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.