I''m getting markup violation errors on my tests and I noticed that a template with this (a modified 0.13.1 generated scaffold). <label for="credit_card_account">Account</label> <%= text_field ''credit_card'', ''account'' %> <label for="credit_card_expires_on">Expires on</label> <%= date_select ''credit_card'', ''expires_on'', :discard_day => true, :start_year => start_year, :end_year => end_year %> expands to this: <label for="credit_card_account">Account</label> <input id="credit_card_account" name="credit_card [account]" size="30" type="text" value="" /> <label for="credit_card_expires_on">Expires on</label> <select name="credit_card[expires_on(1i)]"> <option value="2005" selected="selected">2005</option> snip... </select> <select name="credit_card[expires_on(2i)]"> <option value="1">January</option> snip... </select> And I notice there are no id attributes on the selects. Is this normal behavior? -- -- Tom Mornini
Tom Mornini wrote:> And I notice there are no id attributes on the selects. > > Is this normal behavior?Yes. I made a patch for mid-September trunk that adds ids on date helpers. This hopefully should work on 0.14.1. http://dev.rubyonrails.org/ticket/1382 -- We develop, watch us RoR, in numbers too big to ignore.
Not good. This *was* 0.14.1. :-( Oh, I guess you mean that patch will work against 0.14.1 Too bad it didn''t get included, maybe it still will? -- -- Tom Mornini On Oct 20, 2005, at 4:54 AM, Mark Reginald James wrote:> Tom Mornini wrote: > > >> And I notice there are no id attributes on the selects. >> Is this normal behavior? >> > > Yes. I made a patch for mid-September trunk that adds ids > on date helpers. This hopefully should work on 0.14.1. > > http://dev.rubyonrails.org/ticket/1382 > > -- > We develop, watch us RoR, in numbers too big to ignore. > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
P.S. Thanks for the patch! -- -- Tom Mornini On Oct 20, 2005, at 1:52 PM, Tom Mornini wrote:> Not good. This *was* 0.14.1. :-( > > Oh, I guess you mean that patch will work against 0.14.1 > > Too bad it didn''t get included, maybe it still will? > > -- > -- Tom Mornini > > > On Oct 20, 2005, at 4:54 AM, Mark Reginald James wrote: > > >> Tom Mornini wrote: >> >> >> >>> And I notice there are no id attributes on the selects. >>> Is this normal behavior? >>> >>> >> >> Yes. I made a patch for mid-September trunk that adds ids >> on date helpers. This hopefully should work on 0.14.1. >> >> http://dev.rubyonrails.org/ticket/1382 >> >> -- >> We develop, watch us RoR, in numbers too big to ignore. >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >