Forum: Ruby on Rails Passing named command arguments to a generator

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Eric B. (Guest)
on 2006-03-21 05:45
(Received via mailing list)
Hi folks,

I've been looking at how to create generators for a lot of little tasks.
Does anyone know how to pass, recieve, and then use named arguments to a
generator?  I've been looking at this argument, but I'm not clear on
possible.  Is it solely based on the order of the arguments?

For example, I'd like to pass in an argument with a particular value
(controller=xxx) for example, but allow that argument to appear anywhere
the list.  If anyone has any of their own example generators, I'd love
see them...  Thanks,

This topic is locked and can not be replied to.