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