From: Florian Gross Date: 2004-05-16T04:53:49+09:00 Subject: Re: GET-parameters an local vars Dirk Einecke wrote: > Hi. Moin! > Is there a faster way for example with a loop to write all given > parameters in local vars? This code might help: arg = Module.new do extend self define_method(:method_missing) do |name| (cgi.params[name.to_s] || []).first end end It's used like this: arg.one # => 'eins' arg::two # => 'zwei' You can even do this if you want PHP-style auto import, but I heavily suggest not doing this: (Huge security traps are caused by it!) include arg three # => 'drei' > greetings > Dirk Einecke Regards, Florian Gross