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

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.
0fcceb8cbefc2b99369fe7ba676d4384?d=identicon&s=25 Eric Beland (Guest)
on 2006-03-21 04: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
what's
possible.  Is it solely based on the order of the arguments?

http://wiki.rubyonrails.org/rails/pages/Understand...

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
in
the list.  If anyone has any of their own example generators, I'd love
to
see them...  Thanks,

Eric
This topic is locked and can not be replied to.