I''ve noticed that when using the form method Label, that the label text is translated to html with the first character in Upper Case and the remainder of the text string as lower case. <%= label(:country, "USA") %> becomes <label for="country_USA">Usa</ label> I can''t find any documentation on this unhelpful behavior. Is there anyway way to override it and keep the text string in proper case. Thanks, Bill
You could call it like this: <%= label(:country, :name, "USA") %> This is the method interface: label(object_name, method, text = nil, options = {}) On May 13, 4:05 pm, zambezi <b.but...-GrTI0ftTvuWGJGYlWa3Ukdi2O/JbrIOy@public.gmane.org> wrote:> I''ve noticed that when using the form method Label, that the label > text is translated to html with the first character in Upper Case and > the remainder of the text string as lower case. > > <%= label(:country, "USA") %> becomes <label for="country_USA">Usa</ > label> > > I can''t find any documentation on this unhelpful behavior. Is there > anyway way to override it and keep the text string in proper case. > > Thanks, > Bill
Thank you E. Litwin for bumping me in the right direction. I''m much clearer now. Cheers, Bill On May 13, 6:35 pm, "E. Litwin" <elit...-ur4TIblo6goN+BqQ9rBEUg@public.gmane.org> wrote:> You could call it like this: > <%= label(:country, :name, "USA") %> > > This is the method interface: > label(object_name, method, text = nil, options = {}) > > On May 13, 4:05 pm, zambezi <b.but...-GrTI0ftTvuWGJGYlWa3Ukdi2O/JbrIOy@public.gmane.org> wrote: > > > I''ve noticed that when using the form method Label, that the label > > text is translated to html with the first character in Upper Case and > > the remainder of the text string as lower case. > > > <%= label(:country, "USA") %> becomes <label for="country_USA">Usa</ > > label> > > > I can''t find any documentation on this unhelpful behavior. Is there > > anyway way to override it and keep the text string in proper case. > > > Thanks, > > Bill