<p>I want to create a hidden field and create a link in one helper and then output both to my erb.</p>

<pre><code>&lt;%= my_cool_helper "something", form %&gt;
</code></pre>

<p>Should out put the results of</p>

<pre><code>link_to "something", a_path
form.hidden_field "something".tableize, :value =&gt; "something"
</code></pre>

<p>What would the definition of the helper look like? The details of what link_to and the form.hidden_field don't really matter. What matters is, how do I return the output from two different calls.</p>

So far the best I have come up with is:
```
```
def my_cool_helper(name, form)
  out = capture { link_to name, a_path }
  out << capture { form.hidden_field name.tableize, value => 'something' }
end
```
```
Is there a better way?