I am writing a test suite which depends upon begin able to use the html
id attribute so that the tests are display language independent. The
<option> tag supports this attribute. In fact it supports, among
others, the CLASS, DISABLED, ID, LABEL, SELECTED, STYLE, TITLE, and
VALUE attributes. What I cannot seem to discern from the select API is
how to set the ID attribute on a specific option.
The API refers to options_for_select but I cannot see from that how to
accomplish what I desire.
The specific case that I am dealing with involves a select box for yes
or no. The model attribute is a boolean. I desire to have this sort of
output from the form builder:
Issue Invoices in this Currency
title="May invoices be issued in this currency?">
<option value="false" selected="selected"
I can get everything except the id="invoicable_true" and
id="invoicable_false" against their specific options.
Is this possible with the existing select form helper or needs be I roll