title: Link Detection / String to Link (even without www)
body: <p><strong>Case:</strong> A User's Profile where he can add a bunch of links.</p>
  
  <p>I collect the links via the User Registration Page, but i'm having a Problem with Users not entering www. and http:// in front of the URL.</p>
  
  <p>I could fix the http:// problem with <a href="https://github.com/tenderlove/rails_autolink" rel="nofollow">auto_link</a> but i have to many users just typing <code>example.com</code>.</p>
  
  <blockquote>
    <p>How can i extract the URL from a String, even if it is without www. or http:// (The field contains
    ONLY the url).</p>
  </blockquote>
  
  <p>Display Code:</p>
  
  <pre><code>&lt;% if @user.website.present? %&gt;
    &lt;li&gt;
      &lt;%= link_to @user.website, target: '_blank' do %&gt;
        &lt;i class="fa fa-globe"&gt;&lt;/i&gt; &lt;span&gt;Website&lt;/span&gt;
      &lt;% end %&gt;
    &lt;/li&gt;
  &lt;% end %&gt;
  </code></pre>