HTML Output plugin

Plugin details

This miniscule Rails plugin stops Rails outputting self-closing (XHTML-style) markup awhich is useful if you want to use the Rails tag helpers and produce valid HTML.

Websitehttp://dev.turnipspatch.com/trac/wiki/HTMLOutput Repositoryhttp://svn.turnipspatch.com/public/html_output/ Author Jonathan Leighton Tags HTML, tag LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://svn.turnipspatch.com/public/html_output/

Example:

<%= text_field "person", "name", "size" => 20 %>


will be converted to

< input type="text" id="person_name" name="person[name]" 
  size="20" value="<%= @person.name %>" >



Note there will be no self closing slash in the tag

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago