On Jul 21, 1:51 pm, Virendra Negi
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Rafael Roque wrote:
> > Hi all,
>
> > I have an editing form in which only one field must be editable;the
> > other ones being readonly.Is there some way to automatize it,so I
don´t
> > have to modify all fields by hand?
>
> > Thanks,
> > Rafael Roque
>
> why not disable that field in the form using javascript
No! That will fail -- and leave the field editable -- if JavaScript
is turned off.
In general, there is almost never a good reason to use a read-only
field. If the data is not editable, just put it on the page as plain
text.
If there''s some other issue, please explain in more detail.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org