Ball, Donald A Jr (Library) wrote:
The proper usage of form_tag nowadays is:
<% form_tag do %>
blah blah blah
<% end %>
Supposing I want to use form_tag inside a helper, e.g.
... ??? ...
what would I put inside the block? In my other helpers, I build up a
string and return it.
I know this post is too old, but I haven't seen anyone answering this
question, so here I go.
I found I could use a form_tag inside a helper method this way:
text_field_tag( :name ) +
text_field_tag( :lastname )
I think there should be a cleaner way, but at least this works.