Helpers to produce HTML (not XHTML)


#1

Hi,

In a form_for :comment block, Rails turns

<%= f.text_field :name %>

into

How can I get Rails not to add the closing slash so that it is plain
HTML and not XHTML?

Thanks,
Peter


#2

On 6/19/07, Peter M. removed_email_address@domain.invalid wrote:

How can I get Rails not to add the closing slash so that it is plain
HTML and not XHTML?

Thanks,
Peter

Isn’t that valid HTML as well? Why would you want to do this?