search for: obnrtxkpv0tbdgjk7y7tuq

Displaying 2 results from an estimated 2 matches for "obnrtxkpv0tbdgjk7y7tuq".

2005 Dec 27
0
Edge Rails idea -- was [DRY relative to edit and show]
...;, ''field'' %> > , what about creating an application-wide helper that will set read-only > attribute based on a flag or global? > > <%= my_text_field ''table'', ''field'', read_only %> > > Rich Clingman > Rich-oBnrtXkpV0tBDgjK7y7TUQ@public.gmane.org > > > ----- Original Message ----- > From: Michael > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Sent: Friday, December 23, 2005 10:13 AM > Subject: Re: [Rails] DRY relative to edit and show > > > I have ran into the same concern and...
2005 Dec 23
4
DRY relative to edit and show
I''m a newbie, but it seems like edit and show should somehow share a partial form. In particular I''ve customized the layout of my edit form by using a table and multiple rows/columns and I want my show form to look the same. Currently I''ve modified my show view to use _form, but now all the fields are read/write and obviously they need to be read only on the show form.