I'm probably missing something obvious here but here's what I'm trying to do.
From the view, I'm calling a custom helper function
<div>
<%=display_services%>
</div>
In the helper file with the display_services function
def display_services
html = "<div>"
form_for @user do |f|
f.text_field ...
end
html << "</div>"
end
I find that form_for method and f.text_field output directly to HTML stream without the div wrapper that I like. What is the proper syntax to output all the HTML in display_services? Thanks in advance for your help.