> @name = Name.new(params[:name, :vname] <--- hier liegt bestimmt der Fehler
Richtig! params hat die Methode [] definiert (http://www.ruby-doc.org/core/classes/Hash.html#M002876): hsh[key] => value Element Reference—Retrieves the value object corresponding to the key object. If not found, returns the a default value (see Hash::new for details). h = { "a" => 100, "b" => 200 } h["a"] #=> 100 h["c"] #=> nil Nicht definiert ist allerdings hsh['a', 'b'], was ungefaehr das ist, was du versucht hast. > Was mache ich falsch? wie wäre es denn richtig? Richtig waere also: > @name = Name.new(params[:name], params[:vname]) Ad multos annos - multos ad annos, Rainer
_______________________________________________ rubyonrails-ug mailing list [email protected] http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug
