What is the rails way equivalent of mailto: and tel:?
<p>My model has contact:string and email:string attributes. In pure HTML, we can write</p>
<p><code>&lt;a href=&quot;mailto:sample@email.com&quot;&gt;email us&lt;/a&gt;</code></p>
<p>and</p>
<pre><code>&lt;a href=&quot;tel:123-456&quot;&gt;123-456&lt;/a&gt;
</code></pre>
<p>How do we convert these two into rails code assuming my model name is <code>@sample</code>. My guess would be something like</p>
<pre><code>&lt;%= link_to @sample.email, &quot;#&quot; %&gt;

&lt;%= link_to @sample.contact, &quot;#&quot; %&gt;
</code></pre>
<p>What should be in the <code>&quot;#&quot;</code> ?</p>