The model looks fine, I would check the controller (is the create
action available?) and then the Dryml. Can you paste some code?
Regards,
Ignacio
El 16/01/12 10:57, JezC escribi�:
- --
Ignacio Huerta Arteche
http://www.ihuerta.net
Tel�fono: 0034 645 70 77 35
Email realizado con software libre
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk8UMR8ACgkQBPlUJ6RHaOQCDwCbBQ/SD3VYxjWDQwUkSt+AdRGH
DxoAnAl59eURI7N4fPMnjiMh0UV2B6h0
=C+5P
-----END PGP SIGNATURE-----
It wouldn't get loaded from there, unfortunately, unless you included it somehow. application.dryml is the typical place that such things go.
There is one important gotcha to note, however, between a param tag and a regular tag. For instance, this:
<def tag="form" for="SomeModel">
<form merge>
<field-list fields="foo, bar, baz />
</form>
</def>
will produce a form with fields foo, bar and baz but without a submit button, whereas this:
<def tag="form" for="SomeModel">
<form merge>
<field-list: fields="foo, bar, baz />
</form>
</def>
will produce a form with fields foo, bar, and baz *and* the default submit button. Note the : after field-list.
In the first case, you're replacing the entire content of the form tag with what you're passing. In the latter, you're passing the field-list parameter to form leaving the remainder of the contents unchanged.
--Matt Jones