Hallo Daniel,
nein, nr1 und nr2 sind kein Attribute aus Product.
Das form ist ein Non Model Form.
GRuß
Guido
Zitat von Daniel Schweighoefer <a...@acidforce.org>:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA224
Hallo Guido,
Am 28.04.10 20:55, schrieb Guido Pesch:
Habe dieses Form hier.
Wie bekomme ich Rails dazu, das das ausgewählte Element (bei mir
component) nach dem Commit als selected markiert ist.
Geht das mit collection_select überhaut?
Muss man vielleicht einen anderen Helper nutzen?
Nein, collection_select macht ja genau das. Wenn ich das richtig sehe,
müsste in deiner Option nur als erstes :product stehen, da :nr1 bzw.
:nr2 Attribute von Products sind, oder?
beste Grüße,
Daniel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iFYEARELAAYFAkvYi5sACgkQBCmB9LBcgGB8ygDgitfkTvllpFBysDsz3KmHdany
il1EJnjbR1/RMADfQs8eI/pCE1EGoHnNeuCAWhLUULhJrW2uG2l4KA==
=YqRa
-----END PGP SIGNATURE-----
_______________________________________________
rubyonrails-ug mailing list
rubyonrails-ug@headflash.com
http://mailman.headflash.com/listinfo/rubyonrails-ug
_______________________________________________
rubyonrails-ug mailing list
rubyonrails-ug@headflash.com
http://mailman.headflash.com/listinfo/rubyonrails-ug