Helpers to produce HTML (not XHTML)

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

On 6/19/07, Peter M. [email protected] 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?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs