I want to use form template to render data for show.
My idea is, to readonly/disable formelements. This works fine, except
with selects. The following three variants of render code do not emit
the keyword disabled to the html text:
I want to use form template to render data for show.
Generally not a good idea from a UI point of view. Just use plain text
for display, unless you want to allow editing.
My idea is, to readonly/disable formelements. This works fine, except
with selects. The following three variants of render code do not emit
the keyword disabled to the html text:
It just happens that I’m working on the very same thing again and the
problem with the above is that when the select is not disabled it
actually does not include the empty option.
Running Rails 2.3.5 & Ruby 1.8.6
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.