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:
f.select :attr, @choices, :include_blank => true,
:disabled => !...@condition
f.select :attr, @choices, {:include_blank => true},
:disabled => !...@condition
f.select :attr, @choices, {:include_blank => true},
{:disabled => !...@condition}
Writing readonly instead if disabled (which seems to be undefined for
select) also doesn't have any effects.
What is going wrong?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.