The following code works as far as producing both a label and a text input while only having to write one line in the view, but the less than and greater than symbols in the break tag are being converted to html character entities before they get to the browser.
CODE
def text_field(method, options={})
label_for(method, options) + super(method, options)
end
private
def label_for(method, options={})
label(options.delete(:label) || method) + "<br />"
end
label_for(method, options) + super(method, options)
end
private
def label_for(method, options={})
label(options.delete(:label) || method) + "<br />"
end
My html output therefore looks like this:
Name<br /> [the input box is here]
That <br /> does not turn into a line break.
Any help? The following section with the wrap_field methods does the same thing, the div's and spans display as text.












