On 16 June 2011 12:04, Carlos Antonio <
carlosanto...@gmail.com> wrote:
> This is a browser feature: it does not send disabled fields. If you don't
> want the user to edit the value, but still want it to be submitted, you can
> use the readonly attribute instead.
> Anyway, I'd avoid accepting this :num attribute coming from the form if you
> don't want the user to change it. That's because a user can simply remove
> the disabled flag using the inspector or firebug, and submit another value,
> that you will be gladly accepting. Make sure you set the right value in the
> create action, or internally inside the model.
Yes that' s the solution, thank you very much.